Allow client Makefiles control over whether they want -pedantic by
authorDaniel Dunbar <daniel@zuster.org>
Tue, 12 May 2009 07:26:49 +0000 (07:26 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Tue, 12 May 2009 07:26:49 +0000 (07:26 +0000)
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

Makefile.rules

index bcaed80f2db744c5338100bc3221e424a7581587..41694bd1ff1a400d15e9090695dce28860355220 100644 (file)
@@ -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)