summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2024-08-08 15:36:52 +0100
committerJames Le Cuirot <chewi@gentoo.org>2024-08-08 15:36:52 +0100
commit5d7123c19965b4fee3ce79687cc15f251e998307 (patch)
treefcbc29523503292ebb071f5e8bec768e727923e3 /eclass
parentdev-util/vulkan-headers: disable modules (diff)
downloadgentoo-5d7123c19965b4fee3ce79687cc15f251e998307.tar.gz
gentoo-5d7123c19965b4fee3ce79687cc15f251e998307.tar.bz2
gentoo-5d7123c19965b4fee3ce79687cc15f251e998307.zip
cargo.eclass: Fix cargo_target_dir helper following recent changes
We used to only set the Rust target when cross-compiling, but now we do it unconditionally, which changes the target directory. Closes: https://bugs.gentoo.org/937574 Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/cargo.eclass4
1 files changed, 1 insertions, 3 deletions
diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass
index 6d4cf1b425eb..3a63e5027250 100644
--- a/eclass/cargo.eclass
+++ b/eclass/cargo.eclass
@@ -324,9 +324,7 @@ _cargo_gen_git_config() {
# Return the directory within target that contains the build, e.g.
# target/aarch64-unknown-linux-gnu/release.
cargo_target_dir() {
- local abi
- tc-is-cross-compiler && abi=/$(rust_abi)
- echo "${CARGO_TARGET_DIR:-target}${abi}/$(usex debug debug release)"
+ echo "${CARGO_TARGET_DIR:-target}/$(rust_abi)/$(usex debug debug release)"
}
# @FUNCTION: cargo_src_unpack