pmaports/cross
Affe Null f0286576e7
cross/crossdirect: improve rust handling (MR 4234)
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
2023-07-24 08:32:10 +02:00
..
arch-bin-masquerade cross/arch-bin-masquerade, main/anbox-image, linux-*: use pmb:cross-native (MR 1169) 2020-04-25 10:50:38 +02:00
busybox-static-aarch64 cross/busybox-static-*: upgrade to 1.36.1-r4 2023-07-23 18:07:44 +02:00
busybox-static-armhf cross/busybox-static-*: upgrade to 1.36.1-r4 2023-07-23 18:07:44 +02:00
busybox-static-armv7 cross/busybox-static-*: upgrade to 1.36.1-r4 2023-07-23 18:07:44 +02:00
ccache-cross-symlinks cross/ccache-cross-symlinks: create gcc4 & gcc6 symlinks (MR 1683) 2020-11-04 16:45:33 +01:00
crossdirect cross/crossdirect: improve rust handling (MR 4234) 2023-07-24 08:32:10 +02:00
gcc-aarch64 cross/gcc-*: upgrade to 13.1.1_git20230715 2023-07-23 14:08:07 -07:00
gcc-armhf cross/gcc-*: upgrade to 13.1.1_git20230715 2023-07-23 14:08:07 -07:00
gcc-armv7 cross/gcc-*: upgrade to 13.1.1_git20230715 2023-07-23 14:08:07 -07:00
gcc-riscv64 cross/gcc-*: upgrade to 13.1.1_git20230715 2023-07-23 14:08:07 -07:00
gcc4-aarch64 {main,cross}/gcc{4,6}*: remove !tracedeps option (MR 3498) 2022-10-07 21:36:17 +02:00
gcc4-armhf {main,cross}/gcc{4,6}*: remove !tracedeps option (MR 3498) 2022-10-07 21:36:17 +02:00
gcc4-armv7 {main,cross}/gcc{4,6}*: remove !tracedeps option (MR 3498) 2022-10-07 21:36:17 +02:00
gcc6-aarch64 {main,cross}/gcc{4,6}*: remove !tracedeps option (MR 3498) 2022-10-07 21:36:17 +02:00
gcc6-armhf {main,cross}/gcc{4,6}*: remove !tracedeps option (MR 3498) 2022-10-07 21:36:17 +02:00
gcc6-armv7 {main,cross}/gcc{4,6}*: remove !tracedeps option (MR 3498) 2022-10-07 21:36:17 +02:00
grub-efi-x86 cross/grub-efi-x86: upgrade to 2.06-r13 2023-05-24 09:50:57 +02:00
grub-x86 treewide: fix tabs, final newline, trailing whitespace (MR 3530) 2022-10-16 16:27:22 +02:00
musl-aarch64 cross/musl-*: upgrade to 1.2.4-r6 2023-07-21 09:29:55 +02:00
musl-armhf cross/musl-*: upgrade to 1.2.4-r6 2023-07-21 09:29:55 +02:00
musl-armv7 cross/musl-*: upgrade to 1.2.4-r6 2023-07-21 09:29:55 +02:00
musl-riscv64 cross/musl-*: upgrade to 1.2.4-r6 2023-07-21 09:29:55 +02:00