diff options
author | Eric Christopher <echristo@apple.com> | 2012-08-03 19:58:20 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2012-08-03 19:58:20 +0000 |
commit | 09a887345f283f3ffb46a36e78ca761026ab0cf2 (patch) | |
tree | 7cb61bb2de2c7b9373ba1ed6fc08deb4849a0496 /Makefile.rules | |
parent | 46e6bcf3aca5496e51993dff0d3be2c0b45e4a8f (diff) |
Add a configure flag for enabling -Werror on the command line
while building as requested by Lang.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161253 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.rules')
-rw-r--r-- | Makefile.rules | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules index ebbaba8fac..289adc2be4 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -321,6 +321,11 @@ ifeq ($(ENABLE_CXX11),1) CXX.Flags += -std=c++11 endif +ifeq ($(ENABLE_WERROR),1) + CXX.Flags += -Werror + C.Flags += -Werror +endif + ifeq ($(ENABLE_PROFILING),1) BuildMode := $(BuildMode)+Profile CXX.Flags := $(filter-out -fomit-frame-pointer,$(CXX.Flags)) -pg -g |