2024-07-22 01:59:40 +01:00

13 lines
265 B
Bash
Executable File

#!/bin/bash
set -e
# hack: remove iOS CFLAGS
if [ "$(uname -m)" == "x86_64" ]; then
args=${@/arm64/x86_64}
else
args=$@
fi
args=${args/"-isysroot $thesysroot"/}
args=${args/"-miphoneos-version-min=14.0"/}
$thecxx $args --stdlib=libc++ -isysroot $themacsysroot