GN/Win: pass /DEBUG to linker to get debug symbols.
authorMike Klein <mtklein@chromium.org>
Thu, 13 Oct 2016 17:19:25 +0000 (13:19 -0400)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Thu, 13 Oct 2016 17:39:24 +0000 (17:39 +0000)
Not much used for debug symbols if they're not linked in.

CQ_INCLUDE_TRYBOTS=master.client.skia.compile:Build-Win-MSVC-x86-Debug-Exceptions-Trybot,Build-Win-MSVC-x86_64-Debug-GN-Trybot,Build-Win-MSVC-x86_64-Release-GN-Trybot

GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=3320

Change-Id: I506ae624ec412d4151a025879a5dd14d90183bd8
Reviewed-on: https://skia-review.googlesource.com/3320
Reviewed-by: Mike Klein <mtklein@chromium.org>
Commit-Queue: Mike Klein <mtklein@chromium.org>

gn/BUILD.gn

index 625ed73..b4eb327 100644 (file)
@@ -306,6 +306,7 @@ config("debug_symbols") {
     cflags = [ "-gline-tables-only" ]
   } else if (is_win) {
     cflags = [ "/Zi" ]
+    ldflags = [ "/DEBUG" ]
   } else {
     cflags = [ "-g" ]
   }