[llvm] fd98ecc - [gn build] [win] produce symbolized stack frames in release builds too
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 22 09:36:47 PST 2020
Author: Nico Weber
Date: 2020-01-22T12:36:38-05:00
New Revision: fd98eccf984f203e39452da238a142f83f61d368
URL: https://github.com/llvm/llvm-project/commit/fd98eccf984f203e39452da238a142f83f61d368
DIFF: https://github.com/llvm/llvm-project/commit/fd98eccf984f203e39452da238a142f83f61d368.diff
LOG: [gn build] [win] produce symbolized stack frames in release builds too
Added:
Modified:
llvm/utils/gn/build/BUILD.gn
Removed:
################################################################################
diff --git a/llvm/utils/gn/build/BUILD.gn b/llvm/utils/gn/build/BUILD.gn
index b06ef9ad83e3..adb38ec63a4b 100644
--- a/llvm/utils/gn/build/BUILD.gn
+++ b/llvm/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",
More information about the llvm-commits
mailing list