mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-08 04:08:32 +00:00
Fix dash compatible syntax issue
This commit is contained in:
parent
2c9d2943d6
commit
72ac5f18d9
9 changed files with 13 additions and 4 deletions
|
@ -180,12 +180,12 @@ for x; do
|
|||
elif [ x"$x" = x"-march=native" ]; then
|
||||
fatal_error "-march=native can't be used when building fat binaries"
|
||||
elif [ x"$x" != x"${x#-Xx86_64}" ]; then
|
||||
x=${x#-Xx86_64} # e.g. -Xx86_64,-msse3,-mavx,-mavx2,-mf16c,-mfma
|
||||
FLAGS_X86_64="$FLAGS_X86_64 ${x//,/ }"
|
||||
x=${x#-Xx86_64} # e.g. cosmocc "-Xx86_64 -msse3 -mavx -mavx2 -mf16c -mfma"
|
||||
FLAGS_X86_64="$FLAGS_X86_64 ${x#-Xx86_64}"
|
||||
continue
|
||||
elif [ x"$x" != x"${x#-Xaarch64}" ]; then
|
||||
x=${x#-Xaarch64}
|
||||
FLAGS_aarch64="$FLAGS_aarch64 ${x//,/ }"
|
||||
FLAGS_aarch64="$FLAGS_aarch64 $x"
|
||||
continue
|
||||
elif [ x"$x" = x"-dumpversion" ]; then
|
||||
echo $GCC_VERSION
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue