aboutsummaryrefslogtreecommitdiffstats
path: root/projects
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2012-11-27 08:12:24 +0000
committerCraig Topper <craig.topper@gmail.com>2012-11-27 08:12:24 +0000
commit1c689f7a40f37dc308471dcd65e6a4d43716b073 (patch)
treeb3f4300895b3ed50a1c81c9d258dbb1cbde6a0d9 /projects
parentb10675ef14bea530551172547e2111bf707a408e (diff)
downloadexternal_llvm-1c689f7a40f37dc308471dcd65e6a4d43716b073.zip
external_llvm-1c689f7a40f37dc308471dcd65e6a4d43716b073.tar.gz
external_llvm-1c689f7a40f37dc308471dcd65e6a4d43716b073.tar.bz2
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
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168685 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'projects')
-rw-r--r--projects/sample/Makefile.llvm.rules9
1 files changed, 9 insertions, 0 deletions
diff --git a/projects/sample/Makefile.llvm.rules b/projects/sample/Makefile.llvm.rules
index 7ed1c1b..89b9e56 100644
--- a/projects/sample/Makefile.llvm.rules
+++ b/projects/sample/Makefile.llvm.rules
@@ -250,6 +250,15 @@ ifeq ($(ENABLE_LIBCPP),1)
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