mirror of
https://abf.rosa.ru/djam/chromium-browser-stable-test.git
synced 2025-02-24 01:52:45 +00:00
36 lines
1 KiB
Diff
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) {
|
|
|