We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db6f888 commit e9dfc94Copy full SHA for e9dfc94
mk/rt.mk
@@ -245,7 +245,7 @@ COMPRT_AR_$(1) := $$(AR_$(1))
245
# We chomp -Werror here because GCC warns about the type signature of
246
# builtins not matching its own and the build fails. It's a bit hacky,
247
# but what can we do, we're building libclang-rt using GCC ......
248
-COMPRT_CFLAGS_$(1) := $$(subst -Werror,,$$(CFG_GCCISH_CFLAGS_$(1))) -std=c99
+COMPRT_CFLAGS_$(1) := $$(filter-out -Werror -Werror=*,$$(CFG_GCCISH_CFLAGS_$(1))) -std=c99
249
250
# FreeBSD Clang's packaging is problematic; it doesn't copy unwind.h to
251
# the standard include directory. This should really be in our changes to
0 commit comments