mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 14:58:30 +00:00
Support -S in cosmocross
You can now run commands like `x86_64-unknown-cosmo-c++ -S` when using your cosmocc toolchain. Please note the S flag isn't supported for the cosmocc command itself.
This commit is contained in:
parent
045632a743
commit
74a85087de
1 changed files with 3 additions and 1 deletions
|
@ -122,6 +122,8 @@ for x; do
|
||||||
OPT=$x
|
OPT=$x
|
||||||
elif [ x"$x" = x"-c" ]; then
|
elif [ x"$x" = x"-c" ]; then
|
||||||
INTENT=cc
|
INTENT=cc
|
||||||
|
elif [ x"$x" = x"-S" ]; then
|
||||||
|
INTENT=s
|
||||||
elif [ x"$x" = x"-s" ]; then
|
elif [ x"$x" = x"-s" ]; then
|
||||||
SFLAG=1
|
SFLAG=1
|
||||||
continue
|
continue
|
||||||
|
@ -204,7 +206,7 @@ fi
|
||||||
|
|
||||||
if [ $INTENT = cpp ]; then
|
if [ $INTENT = cpp ]; then
|
||||||
set -- "$CC" $PLATFORM $CPPFLAGS "$@"
|
set -- "$CC" $PLATFORM $CPPFLAGS "$@"
|
||||||
elif [ $INTENT = cc ]; then
|
elif [ $INTENT = cc ] || [ $INTENT = s ]; then
|
||||||
set -- "$CC" $PLATFORM $PREDEF $CFLAGS $CPPFLAGS "$@" $PRECIOUS
|
set -- "$CC" $PLATFORM $PREDEF $CFLAGS $CPPFLAGS "$@" $PRECIOUS
|
||||||
else
|
else
|
||||||
set -- "$CC" $PLATFORM $PREDEF $CFLAGS $CPPFLAGS $CRT "$@" $LDFLAGS $LDLIBS $PRECIOUS
|
set -- "$CC" $PLATFORM $PREDEF $CFLAGS $CPPFLAGS $CRT "$@" $LDFLAGS $LDLIBS $PRECIOUS
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue