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",