aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.rules
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-05-12 07:26:49 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-05-12 07:26:49 +0000
commitb47afd5164d0a5b888e4f44e1e35936cd7afb10e (patch)
tree21d5dc173f60e57889f80d96f909639249d77560 /Makefile.rules
parented8a219c567bfe53d5cf10315c2353a5a78b65c8 (diff)
downloadexternal_llvm-b47afd5164d0a5b888e4f44e1e35936cd7afb10e.zip
external_llvm-b47afd5164d0a5b888e4f44e1e35936cd7afb10e.tar.gz
external_llvm-b47afd5164d0a5b888e4f44e1e35936cd7afb10e.tar.bz2
Allow client Makefiles control over whether they want -pedantic by
defining NO_PEDANTIC. - Pedantic C89 is a painful language... git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71545 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile.rules b/Makefile.rules
index bcaed80..41694bd 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -515,7 +515,10 @@ endif
# Options To Invoke Tools
#----------------------------------------------------------
-CompileCommonOpts += -pedantic -Wall -W -Wwrite-strings -Wno-long-long \
+ifndef NO_PEDANTIC
+CompileCommonOpts += -pedantic
+endif
+CompileCommonOpts += -Wall -W -Wwrite-strings -Wno-long-long \
-Wunused -Wno-unused-parameter $(EXTRA_OPTIONS)
ifeq ($(OS),HP-UX)