Skip to content

Commit 96c802d

Browse files
authored
Merge pull request rust-embedded#197 from antoinefaure/wrong_cc_used
Fix CC pointing to wrong compiler
2 parents c433ca7 + b9b498b commit 96c802d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

classes/cargo_bin.bbclass

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,12 @@ cargo_bin_do_configure() {
9696
cargo_bin_do_compile() {
9797
export TARGET_CC="${WRAPPER_DIR}/cc-wrapper.sh"
9898
export TARGET_CXX="${WRAPPER_DIR}/cxx-wrapper.sh"
99-
export CC="${WRAPPER_DIR}/cc-native-wrapper.sh"
100-
export CXX="${WRAPPER_DIR}/cxx-native-wrapper.sh"
99+
export CC="${WRAPPER_DIR}/cc-wrapper.sh"
100+
export CXX="${WRAPPER_DIR}/cxx-wrapper.sh"
101+
export BUILD_CC="${WRAPPER_DIR}/cc-native-wrapper.sh"
102+
export BUILD_CXX="${WRAPPER_DIR}/cxx-native-wrapper.sh"
101103
export TARGET_LD="${WRAPPER_DIR}/linker-wrapper.sh"
102-
export LD="${WRAPPER_DIR}/linker-native-wrapper.sh"
104+
export LD="${WRAPPER_DIR}/linker-wrapper.sh"
103105
export PKG_CONFIG_ALLOW_CROSS="1"
104106
export LDFLAGS=""
105107
export RUSTFLAGS="${RUSTFLAGS}"

0 commit comments

Comments
 (0)