diff --git a/tool/cosmocc/bin/cosmocc b/tool/cosmocc/bin/cosmocc index 4951546df..148c960a7 100755 --- a/tool/cosmocc/bin/cosmocc +++ b/tool/cosmocc/bin/cosmocc @@ -184,11 +184,6 @@ for x; do # no support for position independent executables # https://github.com/jart/cosmopolitan/issues/1126 continue - elif [ x"$x" = x"-Werror" ] || \ - [ x"$x" = x"-pedantic-errors" ]; then - # this toolchain is intended for building other people's code - # elevating warnings into errors, should only be done by devs - continue elif [ x"$x" = x"-static-libgcc" ] || \ [ x"$x" = x"-shared-libgcc" ]; then # cosmopolitan.a always has llvm compiler runtime static code diff --git a/tool/cosmocc/bin/cosmocross b/tool/cosmocc/bin/cosmocross index 78304cda8..ecdc6a703 100755 --- a/tool/cosmocc/bin/cosmocross +++ b/tool/cosmocc/bin/cosmocross @@ -165,11 +165,6 @@ for x; do # information." set -- "$@" -momit-leaf-frame-pointer -foptimize-sibling-calls continue - elif [ x"$x" != x"${x#-Werror}" ] || \ - [ x"$x" = x"-pedantic-errors" ]; then - # this toolchain is intended for building other people's code - # elevating warnings into errors, should only be done by devs - continue elif [ x"$x" = x"-dumpversion" ]; then echo $GCC_VERSION exit 0