f0286576e7
Add a cargo wrapper which appends a --target argument to the command line. This makes cargo pass the --target argument to rustc for crates being built for the target architecture, even if the target is the same as the host. It will omit the --target argument for build scripts and crates used in macros. Check for this --target argument in the rustc wrapper and adjust the library paths depending on its presence. The fallback that runs rustc under qemu is no longer needed because macros are now built for the native architecture and can be loaded into the native compiler without any problems. Also check if the arguments passed to rustc are "-vV". If this is the case, we still need to fall back to the target rustc because the native rustc will return the wrong architecture. If the wrong host architecture is passed to a build script, it might try to look for a cross-compiler or do something else that doesn't work. [ci:skip-build]: already built successfully in CI |
||
---|---|---|
.. | ||
arch-bin-masquerade | ||
busybox-static-aarch64 | ||
busybox-static-armhf | ||
busybox-static-armv7 | ||
ccache-cross-symlinks | ||
crossdirect | ||
gcc-aarch64 | ||
gcc-armhf | ||
gcc-armv7 | ||
gcc-riscv64 | ||
gcc4-aarch64 | ||
gcc4-armhf | ||
gcc4-armv7 | ||
gcc6-aarch64 | ||
gcc6-armhf | ||
gcc6-armv7 | ||
grub-efi-x86 | ||
grub-x86 | ||
musl-aarch64 | ||
musl-armhf | ||
musl-armv7 | ||
musl-riscv64 |