[llvm-commits] [llvm] r168685 - /llvm/trunk/projects/sample/Makefile.llvm.rules
Craig Topper
craig.topper at gmail.com
Tue Nov 27 00:12:24 PST 2012
Author: ctopper
Date: Tue Nov 27 02:12:24 2012
New Revision: 168685
URL: http://llvm.org/viewvc/llvm-project?rev=168685&view=rev
Log:
Add ENABLE_CXX11 and ENABLE_WERROR to Makefile.llvm.rules for sample project. They were previously added to Makefile.llvm.config.in but the consumption was missing
Modified:
llvm/trunk/projects/sample/Makefile.llvm.rules
Modified: llvm/trunk/projects/sample/Makefile.llvm.rules
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/projects/sample/Makefile.llvm.rules?rev=168685&r1=168684&r2=168685&view=diff
==============================================================================
--- llvm/trunk/projects/sample/Makefile.llvm.rules (original)
+++ llvm/trunk/projects/sample/Makefile.llvm.rules Tue Nov 27 02:12:24 2012
@@ -250,6 +250,15 @@
LD.Flags += -stdlib=libc++
endif
+ifeq ($(ENABLE_CXX11),1)
+ CXX.Flags += -std=c++11
+endif
+
+ifeq ($(ENABLE_WERROR),1)
+ CXX.Flags += -Werror
+ C.Flags += -Werror
+endif
+
ifeq ($(ENABLE_PROFILING),1)
BuildMode := $(BuildMode)+Profile
CXX.Flags := $(filter-out -fomit-frame-pointer,$(CXX.Flags)) -pg -g
More information about the llvm-commits
mailing list