about summary refs log tree commit diff
path: root/mk
diff options
context:
space:
mode:
authorGuillaume Bonnet <guillaumebonnet10@gmail.com>2016-02-03 16:08:18 +0100
committerGuillaume Bonnet <guillaumebonnet10@gmail.com>2016-02-03 16:17:32 +0100
commite9dfc94d263eeb7c4ce25a50619cc2e0cdc32b66 (patch)
treed9d88e5a264e40dec20c3e09f952e97bfb4ab686 /mk
parentdb6f888e7830b0b91a03b2cf141ba0511adaca5b (diff)
downloadrust-e9dfc94d263eeb7c4ce25a50619cc2e0cdc32b66.tar.gz
rust-e9dfc94d263eeb7c4ce25a50619cc2e0cdc32b66.zip
compiler-rt: Handle -Werror=* arguments in CFLAGS
Diffstat (limited to 'mk')
-rw-r--r--mk/rt.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/mk/rt.mk b/mk/rt.mk
index 9dbbcbebb97..14b8abb12b8 100644
--- a/mk/rt.mk
+++ b/mk/rt.mk
@@ -245,7 +245,7 @@ COMPRT_AR_$(1) := $$(AR_$(1))
 # We chomp -Werror here because GCC warns about the type signature of
 # builtins not matching its own and the build fails. It's a bit hacky,
 # but what can we do, we're building libclang-rt using GCC ......
-COMPRT_CFLAGS_$(1) := $$(subst -Werror,,$$(CFG_GCCISH_CFLAGS_$(1))) -std=c99
+COMPRT_CFLAGS_$(1) := $$(filter-out -Werror -Werror=*,$$(CFG_GCCISH_CFLAGS_$(1))) -std=c99
 
 # FreeBSD Clang's packaging is problematic; it doesn't copy unwind.h to
 # the standard include directory. This should really be in our changes to