Skip to content

Commit 13b9ecd

Browse files
committed
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.
1 parent 6659981 commit 13b9ecd

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

tool/cosmocc/bin/cosmocc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,6 @@ for x; do
184184
# no support for position independent executables
185185
# https://github.com/jart/cosmopolitan/issues/1126
186186
continue
187-
elif [ x"$x" = x"-Werror" ] || \
188-
[ x"$x" = x"-pedantic-errors" ]; then
189-
# this toolchain is intended for building other people's code
190-
# elevating warnings into errors, should only be done by devs
191-
continue
192187
elif [ x"$x" = x"-static-libgcc" ] || \
193188
[ x"$x" = x"-shared-libgcc" ]; then
194189
# cosmopolitan.a always has llvm compiler runtime static code

tool/cosmocc/bin/cosmocross

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,6 @@ for x; do
165165
# information."
166166
set -- "$@" -momit-leaf-frame-pointer -foptimize-sibling-calls
167167
continue
168-
elif [ x"$x" != x"${x#-Werror}" ] || \
169-
[ x"$x" = x"-pedantic-errors" ]; then
170-
# this toolchain is intended for building other people's code
171-
# elevating warnings into errors, should only be done by devs
172-
continue
173168
elif [ x"$x" = x"-dumpversion" ]; then
174169
echo $GCC_VERSION
175170
exit 0

0 commit comments

Comments
 (0)