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
This commit is contained in:
Daniel Dunbar 2009-05-12 07:26:49 +00:00
parent 429185787a
commit e36b6d425f

View 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)