diff options
author | Craig Topper <craig.topper@gmail.com> | 2012-11-27 08:12:24 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2012-11-27 08:12:24 +0000 |
commit | c04bc07ad526f7490fcbd405194eb3b59128ce56 (patch) | |
tree | 72702f8c6069b429d3cc7015c8b9ed2e6646517a /llvm/projects/sample | |
parent | a878e74351972666d74df102b0675872ebb3fbe9 (diff) | |
download | bcm5719-llvm-c04bc07ad526f7490fcbd405194eb3b59128ce56.tar.gz bcm5719-llvm-c04bc07ad526f7490fcbd405194eb3b59128ce56.zip |
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
llvm-svn: 168685
Diffstat (limited to 'llvm/projects/sample')
-rw-r--r-- | llvm/projects/sample/Makefile.llvm.rules | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/projects/sample/Makefile.llvm.rules b/llvm/projects/sample/Makefile.llvm.rules index 7ed1c1b4ed6..89b9e56ef41 100644 --- a/llvm/projects/sample/Makefile.llvm.rules +++ b/llvm/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 |