mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
gn build: Windows: write PDBs when is_debug
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 llvm-svn: 353093
This commit is contained in:
parent
bbd2dbe270
commit
f7bca5bdd5
@ -34,7 +34,11 @@ config("compiler_defaults") {
|
|||||||
]
|
]
|
||||||
} else {
|
} else {
|
||||||
if (is_debug) {
|
if (is_debug) {
|
||||||
cflags += [ "/Zi" ]
|
cflags += [
|
||||||
|
"/Zi",
|
||||||
|
"/FS",
|
||||||
|
]
|
||||||
|
ldflags += [ "/DEBUG" ]
|
||||||
} else {
|
} else {
|
||||||
cflags += [
|
cflags += [
|
||||||
"/O2",
|
"/O2",
|
||||||
@ -57,7 +61,7 @@ config("compiler_defaults") {
|
|||||||
|
|
||||||
# The MSVC default value (1 MB) is not enough for parsing recursive C++
|
# The MSVC default value (1 MB) is not enough for parsing recursive C++
|
||||||
# templates in Clang.
|
# templates in Clang.
|
||||||
ldflags = [ "/STACK:10000000" ]
|
ldflags += [ "/STACK:10000000" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
# Warning setup.
|
# Warning setup.
|
||||||
|
Loading…
Reference in New Issue
Block a user