mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-17 20:34:51 +08:00
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)
This commit is contained in:
parent
719bde87b7
commit
a0564628c4
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user