[gn build] Try to fix win build after cfe0284749

This commit is contained in:
Nico Weber 2021-09-07 16:58:57 -04:00
parent 08ba87fa4b
commit d4071b2777
1 changed files with 4 additions and 2 deletions

View File

@ -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
}