Skip to content

Commit

Permalink
Remove outdated restriction on -Werror on cosmocc
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jart committed May 9, 2024
1 parent 6659981 commit 13b9ecd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions tool/cosmocc/bin/cosmocc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 0 additions & 5 deletions tool/cosmocc/bin/cosmocross
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 13b9ecd

Please sign in to comment.