summaryrefslogtreecommitdiff
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
commite36b6d425f6b69e065f1798803ecc943a270501d (patch)
tree21d5dc173f60e57889f80d96f909639249d77560 /Makefile.rules
parent429185787af4c82408b58377c1cc0dd66a16e6a0 (diff)
downloadllvm-e36b6d425f6b69e065f1798803ecc943a270501d.tar.gz
llvm-e36b6d425f6b69e065f1798803ecc943a270501d.tar.bz2
llvm-e36b6d425f6b69e065f1798803ecc943a270501d.tar.xz
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 bcaed80f2d..41694bd1ff 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)