OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b10675e
)
Add ENABLE_CXX11 and ENABLE_WERROR to Makefile.llvm.rules for sample project. They...
author
Craig Topper
<craig.topper@gmail.com>
Tue, 27 Nov 2012 08:12:24 +0000
(08:12 +0000)
committer
Craig Topper
<craig.topper@gmail.com>
Tue, 27 Nov 2012 08:12:24 +0000
(08:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168685
91177308
-0d34-0410-b5e6-
96231b3b80d8
projects/sample/Makefile.llvm.rules
patch
|
blob
|
history
diff --git
a/projects/sample/Makefile.llvm.rules
b/projects/sample/Makefile.llvm.rules
index
7ed1c1b
..
89b9e56
100644
(file)
--- 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