Skip to content

Commit a056462

Browse files
committed
try removing -lstdc++ (this will likely make a few extensions fail to load with undefined gxx_personality_v0 again, but we can use COMPILER_EXTRA there)
1 parent 719bde8 commit a056462

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ if [ -n "$SPC_TARGET" ]; then
3939
TARGET="-target $SPC_TARGET"
4040
fi
4141

42-
output=$(zig cc $TARGET -lstdc++ $COMPILER_EXTRA "${PARSED_ARGS[@]}" 2>&1)
42+
output=$(zig cc $TARGET $COMPILER_EXTRA "${PARSED_ARGS[@]}" 2>&1)
4343
status=$?
4444

4545
if [ $status -eq 0 ]; then
@@ -51,5 +51,6 @@ if echo "$output" | grep -q "version '.*' in target triple"; then
5151
echo "$output" | grep -v "version '.*' in target triple"
5252
exit 0
5353
else
54-
exec zig cc $TARGET $COMPILER_EXTRA "${PARSED_ARGS[@]}"
54+
echo "$output"
55+
exit $status
5556
fi

0 commit comments

Comments
 (0)