File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -48,14 +48,18 @@ CARGO_BUILD_FLAGS = "\
48
48
"
49
49
50
50
create_cargo_config () {
51
- echo > ${CARGO_HOME} /config
52
- echo "[target.${RUST_BUILD} ]" >> ${CARGO_HOME} /config
53
- echo "linker = '${WRAPPER_DIR} /linker-native-wrapper.sh'" >> ${CARGO_HOME} /config
54
-
55
51
if [ "${RUST_BUILD} " != "${RUST_TARGET} " ]; then
52
+ echo > ${CARGO_HOME} /config
53
+ echo "[target.${RUST_BUILD} ]" >> ${CARGO_HOME} /config
54
+ echo "linker = '${WRAPPER_DIR} /linker-native-wrapper.sh'" >> ${CARGO_HOME} /config
55
+
56
56
echo >> ${CARGO_HOME} /config
57
57
echo "[target.${RUST_TARGET} ]" >> ${CARGO_HOME} /config
58
58
echo "linker = '${WRAPPER_DIR} /linker-wrapper.sh'" >> ${CARGO_HOME} /config
59
+ else
60
+ echo > ${CARGO_HOME} /config
61
+ echo "[target.${RUST_TARGET} ]" >> ${CARGO_HOME} /config
62
+ echo "linker = '${WRAPPER_DIR} /linker-wrapper.sh'" >> ${CARGO_HOME} /config
59
63
fi
60
64
61
65
echo >> ${CARGO_HOME} /config
You can’t perform that action at this time.
0 commit comments