Skip to content

Commit

Permalink
compiler-rt: Handle -Werror=* arguments in CFLAGS
Browse files Browse the repository at this point in the history
  • Loading branch information
gbonnet1 committed Feb 3, 2016
1 parent db6f888 commit e9dfc94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mk/rt.mk
Expand Up @@ -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
Expand Down

0 comments on commit e9dfc94

Please sign in to comment.