From aa258c1b7746e745261289258de0612d0df7027e Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Wed, 22 Jan 2020 12:36:38 -0500 Subject: [PATCH] [gn build] [win] produce symbolized stack frames in release builds too --- utils/gn/build/BUILD.gn | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/utils/gn/build/BUILD.gn b/utils/gn/build/BUILD.gn index b06ef9ad83e..adb38ec63a4 100644 --- a/utils/gn/build/BUILD.gn +++ b/utils/gn/build/BUILD.gn @@ -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",