From a0564628c45ecaf4f61853fe7a212ff2533284b4 Mon Sep 17 00:00:00 2001 From: DubbleClick Date: Tue, 1 Jul 2025 23:32:55 +0700 Subject: [PATCH] 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) --- src/SPC/store/scripts/zig-cc.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/SPC/store/scripts/zig-cc.sh b/src/SPC/store/scripts/zig-cc.sh index 4b0b7049..7b4b8e23 100644 --- a/src/SPC/store/scripts/zig-cc.sh +++ b/src/SPC/store/scripts/zig-cc.sh @@ -39,7 +39,7 @@ if [ -n "$SPC_TARGET" ]; then TARGET="-target $SPC_TARGET" fi -output=$(zig cc $TARGET -lstdc++ $COMPILER_EXTRA "${PARSED_ARGS[@]}" 2>&1) +output=$(zig cc $TARGET $COMPILER_EXTRA "${PARSED_ARGS[@]}" 2>&1) status=$? if [ $status -eq 0 ]; then @@ -51,5 +51,6 @@ if echo "$output" | grep -q "version '.*' in target triple"; then echo "$output" | grep -v "version '.*' in target triple" exit 0 else - exec zig cc $TARGET $COMPILER_EXTRA "${PARSED_ARGS[@]}" + echo "$output" + exit $status fi