mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
[gn] Make -no-exceptions flag a config
This allows it to be disabled for targets that need exceptions like libunwind, libc++abi and libc++. Differential Revision: https://reviews.llvm.org/D60328 llvm-svn: 357797
This commit is contained in:
parent
10eded2af8
commit
1bafa2bce0
@ -31,7 +31,6 @@ config("compiler_defaults") {
|
||||
cflags += [ "-fdiagnostics-color" ]
|
||||
cflags_cc = [
|
||||
"-std=c++11",
|
||||
"-fno-exceptions",
|
||||
"-fvisibility-inlines-hidden",
|
||||
]
|
||||
} else {
|
||||
@ -139,6 +138,10 @@ config("compiler_defaults") {
|
||||
}
|
||||
}
|
||||
|
||||
config("no_exceptions") {
|
||||
cflags_cc = [ "-fno-exceptions" ]
|
||||
}
|
||||
|
||||
config("no_rtti") {
|
||||
if (current_os == "win") {
|
||||
cflags_cc = [ "/GR-" ]
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user