Without /DEBUG, the /Zi doesn't on its own create PDB files.
And since ninja runs multiple compilations in parallel, we need /FS to prevent contention on PDBs.
Differential Revision: https://reviews.llvm.org/D57612
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@353093
91177308-0d34-0410-b5e6-
96231b3b80d8
]
} else {
if (is_debug) {
- cflags += [ "/Zi" ]
+ cflags += [
+ "/Zi",
+ "/FS",
+ ]
+ ldflags += [ "/DEBUG" ]
} else {
cflags += [
"/O2",
# The MSVC default value (1 MB) is not enough for parsing recursive C++
# templates in Clang.
- ldflags = [ "/STACK:10000000" ]
+ ldflags += [ "/STACK:10000000" ]
}
# Warning setup.