aboutsummaryrefslogtreecommitdiffhomepage
path: root/gn/BUILD.gn
diff options
context:
space:
mode:
authorGravatar Mike Klein <mtklein@chromium.org>2017-12-15 07:34:27 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-12-15 14:34:38 +0000
commit67a86d50f38d3a646ed165f7c6a7d58fda45cbab (patch)
tree8a0fa56b5f17805d16fdf40c56416947f8eee10a /gn/BUILD.gn
parent2b4bc3c31636cfe632186ed7b8ca983e099c27b9 (diff)
Try /Z7 on Windows builds.
Right now /FS and /Zi together serialize debug information into .pdb files through another process. I tried just dropping /FS, so that each cl.exe instance writes to the .pdb file directly, but the bots don't like that. Instead, let's try switching /Zi to /Z7, to embed debug information directly into the object file instead of alongside in a .pdb. This is all about trying to improve build times. https://docs.microsoft.com/en-us/cpp/build/reference/z7-zi-zi-debug-information-format https://docs.microsoft.com/en-us/cpp/build/reference/fs-force-synchronous-pdb-writes Change-Id: If636f8fa21c639eff81d9c335c5223908c0fdcea Reviewed-on: https://skia-review.googlesource.com/85661 Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'gn/BUILD.gn')
-rw-r--r--gn/BUILD.gn3
1 files changed, 1 insertions, 2 deletions
diff --git a/gn/BUILD.gn b/gn/BUILD.gn
index 4d6ada7040..28b1aec1b7 100644
--- a/gn/BUILD.gn
+++ b/gn/BUILD.gn
@@ -39,7 +39,6 @@ config("default") {
if (is_win) {
cflags += [
- "/FS", # Preserve previous PDB behavior.
"/bigobj", # Some of our files are bigger than the regular limits.
"/WX", # Treat warnings as errors.
"/utf-8", # Set Source and Executable character sets to UTF-8.
@@ -381,7 +380,7 @@ config("debug_symbols") {
"-funwind-tables", # Helps make in-process backtraces fuller.
]
} else if (is_win) {
- cflags = [ "/Zi" ]
+ cflags = [ "/Z7" ]
ldflags = [ "/DEBUG" ]
} else {
cflags = [ "-g" ]