Update BUILD.gn

This commit is contained in:
Alexander David Frick 2022-08-01 03:09:21 -05:00 committed by GitHub
parent 9625bf9b4e
commit 7ecfe17bb5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2527,7 +2527,7 @@ config("minimal_symbols") {
cflags += [ "-gcodeview-ghash" ] cflags += [ "-gcodeview-ghash" ]
ldflags = [ "/DEBUG:GHASH" ] ldflags = [ "/DEBUG:GHASH" ]
} else { } else {
ldflags = [ "/DEBUG:NONE" ] ldflags = [ "/DEBUG" ]
} }
# All configs using /DEBUG should include this: # All configs using /DEBUG should include this:
@ -2563,7 +2563,7 @@ config("minimal_symbols") {
# flag, so we can use use -g1 for pnacl and nacl-clang compiles. # flag, so we can use use -g1 for pnacl and nacl-clang compiles.
# gcc nacl is is_nacl && !is_clang, pnacl and nacl-clang are && is_clang. # gcc nacl is is_nacl && !is_clang, pnacl and nacl-clang are && is_clang.
if (!is_nacl || is_clang) { if (!is_nacl || is_clang) {
cflags += [ "-g" ] cflags += [ "-g1" ]
} }
if (!is_nacl && is_clang && !is_tsan && !is_asan) { if (!is_nacl && is_clang && !is_tsan && !is_asan) {
@ -2592,7 +2592,7 @@ config("minimal_symbols") {
# names in the final debug information. # names in the final debug information.
config("no_symbols") { config("no_symbols") {
if (is_win) { if (is_win) {
ldflags = [ "/DEBUG:NONE" ] ldflags = [ "/DEBUG" ]
# All configs using /DEBUG should include this: # All configs using /DEBUG should include this:
configs = [ ":win_pdbaltpath" ] configs = [ ":win_pdbaltpath" ]