From c04bc07ad526f7490fcbd405194eb3b59128ce56 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Tue, 27 Nov 2012 08:12:24 +0000 Subject: [PATCH] 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 --- llvm/projects/sample/Makefile.llvm.rules | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/llvm/projects/sample/Makefile.llvm.rules b/llvm/projects/sample/Makefile.llvm.rules index 7ed1c1b..89b9e56 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 -- 2.7.4