File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ export CARGO_TARGET_DIR = "${B}"
19
19
20
20
RUST_TARGET = "${@ rust_target (d , 'TARGET' )}"
21
21
RUST_BUILD = "${@ rust_target (d , 'BUILD' )}"
22
+ CARGO_TARGET_LINKER_NAME = "${@ d . getVar ('RUST_TARGET' , True ). replace ('-' , '_' ). upper ()}"
22
23
23
24
# Additional flags passed directly to the "cargo build" invocation
24
25
EXTRA_CARGO_FLAGS ??= ""
@@ -112,7 +113,7 @@ cargo_bin_do_compile() {
112
113
export CARGO_UNSTABLE_TARGET_APPLIES_TO_HOST = "true"
113
114
export CARGO_UNSTABLE_HOST_CONFIG = "true"
114
115
export CARGO_TARGET_APPLIES_TO_HOST = "false"
115
- export CARGO_TARGET_ ${@ rust_target ( d , 'TARGET' ) . replace ( '-' , '_' ) . upper () }_LINKER = "${WRAPPER_DIR} /linker-wrapper.sh"
116
+ export CARGO_TARGET_${CARGO_TARGET_LINKER_NAME }_LINKER = "${WRAPPER_DIR} /linker-wrapper.sh"
116
117
export CARGO_HOST_LINKER = "${WRAPPER_DIR} /linker-native-wrapper.sh"
117
118
export CARGO_BUILD_FLAGS = "-C rpath"
118
119
export CARGO_PROFILE_RELEASE_DEBUG = "true"
You can’t perform that action at this time.
0 commit comments