Skip to content

Commit

Permalink
rust-crate.eclass: Use rust-toolchain for TARGET=
Browse files Browse the repository at this point in the history
Bug: #3
  • Loading branch information
kentfredric committed Feb 5, 2020
1 parent b7888a2 commit cc4f84b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions eclass/rust-crate.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ esac
# dev-dependencies or crates like winapi.
: ${RUST_CRATE_EMPTY:=}

inherit multiprocessing toolchain-funcs
inherit rust-toolchain multiprocessing toolchain-funcs

EXPORT_FUNCTIONS src_unpack src_compile src_configure src_install src_test

Expand Down Expand Up @@ -127,7 +127,7 @@ rust-crate_src_configure() {
export CARGO_HOME="${ECARGO_HOME}"
export HOST="${CBUILD}"
export HOST_CC="$(tc-getBUILD_CC)"
export TARGET="${CHOST}"
export TARGET="$(rust_abi)"
export TARGET_CC="$(tc-getCC)"
# https://github.com/rust-lang/pkg-config-rs/issues/41
tc-is-cross-compiler && export PKG_CONFIG_ALLOW_CROSS=1
Expand Down

0 comments on commit cc4f84b

Please sign in to comment.