forked from OSchip/llvm-project
[gn build] Try to fix win build after cfe0284749
This commit is contained in:
parent
08ba87fa4b
commit
d4071b2777
|
@ -41,6 +41,7 @@ config("compiler_defaults") {
|
|||
|
||||
asmflags = target_flags
|
||||
cflags = target_flags
|
||||
cflags_cc = []
|
||||
ldflags = target_flags + target_ldflags
|
||||
|
||||
# Mostly for compiler-rt, see compiler-rt/cmake/config-ix.cmake
|
||||
|
@ -86,7 +87,7 @@ config("compiler_defaults") {
|
|||
if (use_lld) {
|
||||
ldflags += [ "-Wl,--color-diagnostics" ]
|
||||
}
|
||||
cflags_cc = [
|
||||
cflags_cc += [
|
||||
"-std=c++14",
|
||||
"-fvisibility-inlines-hidden",
|
||||
]
|
||||
|
@ -353,8 +354,9 @@ config("compiler_defaults") {
|
|||
}
|
||||
|
||||
config("no_exceptions") {
|
||||
cflags_cc = []
|
||||
if (host_os != "win") {
|
||||
cflags_cc = [ "-fno-exceptions" ]
|
||||
cflags_cc += [ "-fno-exceptions" ]
|
||||
}
|
||||
cflags_objcc = cflags_cc
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue