diff options
| author | James Le Cuirot <chewi@gentoo.org> | 2024-05-31 22:49:47 +0100 |
|---|---|---|
| committer | James Le Cuirot <chewi@gentoo.org> | 2024-06-12 14:18:01 +0100 |
| commit | 375da3684e685c6fd8367ffcf37e090526d55e4d (patch) | |
| tree | e88039718353952b915dcf84504e9770c8cc7150 /dev-cpp | |
| parent | e274b7b2ebe1261cb204064880be78c13300d13d (diff) | |
| download | gentoo-375da3684e685c6fd8367ffcf37e090526d55e4d.tar.gz gentoo-375da3684e685c6fd8367ffcf37e090526d55e4d.tar.bz2 gentoo-375da3684e685c6fd8367ffcf37e090526d55e4d.zip | |
cargo.eclass: Enable cross-compiling by setting environment variables
CARGO_BUILD_TARGET and CARGO_TARGET_<triple>_LINKER are enough for pure
Rust. The linker otherwise defaults to `cc`. This doesn't respect any
linker specified in LDFLAGS, but this is also true for native builds. We
would need to do something with RUSTFLAGS.
The HOST_* variables are for the cc-rs crate, which is often used to
build non-Rust code. It uses the usual variables (CC, CFLAGS, etc) for
the target.
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'dev-cpp')
0 files changed, 0 insertions, 0 deletions
