chromium-browser-stable-test/chromium-84.0.4147.89-clang8-build-debug.patch
2020-07-27 17:02:43 +03:00

36 lines
1 KiB
Diff

--- chromium-84.0.4147.89/build/config/compiler/BUILD.gn.orig
+++ chromium-84.0.4147.89/build/config/compiler/BUILD.gn
@@ -2138,13 +2138,13 @@
configs = [ ":win_pdbaltpath" ]
if (is_clang) {
- # Use constructor debug mode. This option reduces debug info more than
- # -fno-standalone-debug by emitting class type information only when
- # constructors are emitted.
- cflags += [
- "-Xclang",
- "-debug-info-kind=constructor",
- ]
+ # /DEBUG:FASTLINK requires every object file to have standalone debug
+ # information.
+ if (is_win_fastlink && !use_lld) {
+ cflags += [ "-fstandalone-debug" ]
+ } else {
+ cflags += [ "-fno-standalone-debug" ]
+ }
}
} else {
cflags = []
@@ -2185,10 +2185,7 @@
}
if (is_clang && !is_nacl && !use_xcode_clang) {
- cflags += [
- "-Xclang",
- "-debug-info-kind=constructor",
- ]
+ cflags += [ "-fno-standalone-debug" ]
}
if (use_debug_fission && !is_nacl && !is_android) {