Index: build/config/compiler/BUILD.gn |
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn |
index 069f10b98123f4560bee01bcdaaea8cf674e22e3..f7122c1915328da18c1585e20c094611cfe30472 100644 |
--- a/build/config/compiler/BUILD.gn |
+++ b/build/config/compiler/BUILD.gn |
@@ -1599,7 +1599,12 @@ config("afdo") { |
# Full symbols. |
config("symbols") { |
if (is_win) { |
- cflags = [ "/Zi" ] # Produce PDB file, no edit and continue. |
+ if (use_goma) { |
+ # Note that this requires is_win_fastlink, enforced elsewhere. |
+ cflags = [ "/Z7" ] # Debug information in the .obj files. |
+ } else { |
+ cflags = [ "/Zi" ] # Produce PDB file, no edit and continue. |
+ } |
if (is_win_fastlink) { |
# Tell VS 2015+ to create a PDB that references debug |