Skip to content

Commit 7b33ee7

Browse files
committed
make sure that $TARGET splits for -dynamic, otherwise it resolves to "-target 'native-native -dynamic'"
1 parent ad8322b commit 7b33ee7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SPC/store/scripts/zig-cc.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ else
6868
TARGET="${SPC_TARGET}-${SPC_LIBC}"
6969
[ -n "$SPC_LIBC_VERSION" ] && TARGET="${TARGET}.${SPC_LIBC_VERSION}"
7070

71-
output=$(zig cc -target "$TARGET" -lstdc++ ${COMPILER_EXTRA} "${PARSED_ARGS[@]}" 2>&1)
71+
output=$(zig cc -target ${TARGET} -lstdc++ ${COMPILER_EXTRA} "${PARSED_ARGS[@]}" 2>&1)
7272
status=$?
7373

7474
if [ $status -eq 0 ]; then
@@ -80,6 +80,6 @@ else
8080
echo "$output" | grep -v "version '.*' in target triple"
8181
exit 0
8282
else
83-
exec zig cc -target "$TARGET" ${COMPILER_EXTRA} "${PARSED_ARGS[@]}"
83+
exec zig cc -target ${TARGET} ${COMPILER_EXTRA} "${PARSED_ARGS[@]}"
8484
fi
8585
fi

0 commit comments

Comments
 (0)