Skip to content

Commit ef9a765

Browse files
authored
Merge pull request #152 from Scewo/TryFixDaily
fix(cargo-linker): variable case and value
2 parents 2089ae6 + 2b118d9 commit ef9a765

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/cargo_bin.bbclass

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ cargo_bin_do_compile() {
101101
export CARGO_UNSTABLE_TARGET_APPLIES_TO_HOST="true"
102102
export CARGO_UNSTABLE_HOST_CONFIG="true"
103103
export CARGO_TARGET_APPLIES_TO_HOST="false"
104-
export CARGO_TARGET_${@rust_target(d, 'BUILD').replace('-','_')}_LINKER="${WRAPPER_DIR}/linker-wrapper.sh"
104+
export CARGO_TARGET_${@rust_target(d, 'TARGET').replace('-','_').upper()}_LINKER="${WRAPPER_DIR}/linker-wrapper.sh"
105105
export CARGO_HOST_LINKER="${WRAPPER_DIR}/linker-native-wrapper.sh"
106106
export CARGO_BUILD_FLAGS="-C rpath"
107107
export CARGO_PROFILE_RELEASE_DEBUG="true"

0 commit comments

Comments
 (0)