[PATCH] D60328: [gn] Make -no-exceptions flag a config
Petr Hosek via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 5 12:11:08 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL357797: [gn] Make -no-exceptions flag a config (authored by phosek, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D60328?vs=193921&id=193933#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D60328/new/
https://reviews.llvm.org/D60328
Files:
llvm/trunk/utils/gn/build/BUILD.gn
llvm/trunk/utils/gn/build/BUILDCONFIG.gn
Index: llvm/trunk/utils/gn/build/BUILDCONFIG.gn
===================================================================
--- llvm/trunk/utils/gn/build/BUILDCONFIG.gn
+++ llvm/trunk/utils/gn/build/BUILDCONFIG.gn
@@ -5,6 +5,7 @@
shared_binary_target_configs = [
"//llvm/utils/gn/build:compiler_defaults",
"//llvm/utils/gn/build:llvm_code",
+ "//llvm/utils/gn/build:no_exceptions",
"//llvm/utils/gn/build:no_rtti",
"//llvm/utils/gn/build:thin_archive",
"//llvm/utils/gn/build:warn_covered_switch_default",
Index: llvm/trunk/utils/gn/build/BUILD.gn
===================================================================
--- llvm/trunk/utils/gn/build/BUILD.gn
+++ llvm/trunk/utils/gn/build/BUILD.gn
@@ -31,7 +31,6 @@
cflags += [ "-fdiagnostics-color" ]
cflags_cc = [
"-std=c++11",
- "-fno-exceptions",
"-fvisibility-inlines-hidden",
]
} else {
@@ -139,6 +138,10 @@
}
}
+config("no_exceptions") {
+ cflags_cc = [ "-fno-exceptions" ]
+}
+
config("no_rtti") {
if (current_os == "win") {
cflags_cc = [ "/GR-" ]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60328.193933.patch
Type: text/x-patch
Size: 1064 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190405/a05f46e3/attachment.bin>
More information about the llvm-commits
mailing list