[gn build] [win] produce symbolized stack frames in release builds too

This commit is contained in:
Nico Weber 2020-01-22 12:36:38 -05:00
parent 300997c41a
commit fd98eccf98
1 changed files with 6 additions and 1 deletions

View File

@ -55,8 +55,13 @@ config("compiler_defaults") {
"/Zi",
"/FS",
]
ldflags += [ "/DEBUG" ]
}
# Always ask the linker for a pdb. If the .obj files don't contain debug
# info, this will produce enough for function names in backtraces, and
# it doesn't slow down linking much.
ldflags += [ "/DEBUG" ]
if (is_optimized) {
cflags += [
"/O2",