Expand description
Support for cross-compile tests with the --target
flag.
Note that cross-testing is very limited. You need to install the “alternate” target to the host (32-bit for 64-bit hosts or vice-versa).
Set CFG_DISABLE_CROSS_TESTS=1
environment variable to disable these tests
if you are unable to use the alternate target. Unfortunately 32-bit
support on macOS is going away, so macOS users are out of luck.
These tests are all disabled on rust-lang/rust’s CI, but run in Cargo’s CI.
Statics§
- CAN_
RUN_ 🔒ON_ HOST - Whether or not the resulting cross binaries can run on the host.
Functions§
- alternate
- The alternate target-triple to build with.
- alternate_
arch - can_
run_ on_ host - Whether or not the host can run cross-compiled executables.
- disabled
- native
- The arch triple of the test-running host.
- native_
arch - requires_
target_ installed - Check if the given target has been installed.
- try_
alternate 🔒 - A possible alternate target-triple to build with.
- unused
- A target-triple that is neither the host nor the target.