[llvm-commits] [llvm] r71545 - /llvm/trunk/Makefile.rules
Daniel Dunbar
daniel at zuster.org
Tue May 12 00:26:49 PDT 2009
Author: ddunbar
Date: Tue May 12 02:26:49 2009
New Revision: 71545
URL: http://llvm.org/viewvc/llvm-project?rev=71545&view=rev
Log:
Allow client Makefiles control over whether they want -pedantic by
defining NO_PEDANTIC.
- Pedantic C89 is a painful language...
Modified:
llvm/trunk/Makefile.rules
Modified: llvm/trunk/Makefile.rules
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/Makefile.rules?rev=71545&r1=71544&r2=71545&view=diff
==============================================================================
--- llvm/trunk/Makefile.rules (original)
+++ llvm/trunk/Makefile.rules Tue May 12 02:26:49 2009
@@ -515,7 +515,10 @@
# 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)
More information about the llvm-commits
mailing list