mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +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"
|
TARGET="-target $SPC_TARGET"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
output=$(zig cc $TARGET -lstdc++ $COMPILER_EXTRA "${PARSED_ARGS[@]}" 2>&1)
|
output=$(zig cc $TARGET $COMPILER_EXTRA "${PARSED_ARGS[@]}" 2>&1)
|
||||||
status=$?
|
status=$?
|
||||||
|
|
||||||
if [ $status -eq 0 ]; then
|
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"
|
echo "$output" | grep -v "version '.*' in target triple"
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
exec zig cc $TARGET $COMPILER_EXTRA "${PARSED_ARGS[@]}"
|
echo "$output"
|
||||||
|
exit $status
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user