Remove outdated restriction on -Werror on cosmocc

This was a good idea back when we were only using it to build various
open source projects. However it no longer makes sense that many more
people are depending on cosmocc, to develop new software. Our tooling
shouldn't be making these kinds of decisions for the user.
This commit is contained in:
Justine Tunney 2024-05-09 14:03:51 -07:00
parent 6659981457
commit 13b9ecd537
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
2 changed files with 0 additions and 10 deletions

View file

@ -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

View file

@ -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