Index: build/config/compiler/BUILD.gn |
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn |
index b91e5bba2d5294fff7c48edfca75e86ed4d4dc5f..6774b2a36b68419ac0e649da0b3292ff3e15647b 100644 |
--- a/build/config/compiler/BUILD.gn |
+++ b/build/config/compiler/BUILD.gn |
@@ -1661,7 +1661,7 @@ config("symbols") { |
# "third_party/binutils/Linux_x64/Release/bin/ld.gold: warning: |
# /tmp/lto-llvm-0b5201.o: corrupt debug info in .debug_info" |
if (!is_mac && !is_ios && !is_nacl && target_cpu != "x86" && |
- !is_official_build) { |
+ !allow_posix_link_time_opt && !is_official_build) { |
ldflags += [ "-Wl,--gdb-index" ] |
} |
} |