mirror of
https://abf.rosa.ru/djam/chromium-browser-stable-test.git
synced 2025-02-24 10:02:47 +00:00
62 lines
2 KiB
Diff
62 lines
2 KiB
Diff
--- a/build/config/compiler/BUILD.gn
|
|
+++ b/build/config/compiler/BUILD.gn
|
|
@@ -618,24 +618,6 @@
|
|
}
|
|
}
|
|
|
|
- # TODO(crbug.com/1488374): This causes binary size growth and potentially
|
|
- # other problems.
|
|
- # TODO(crbug.com/1491036): This isn't supported by Cronet's mainline llvm version.
|
|
- if (default_toolchain != "//build/toolchain/cros:target" &&
|
|
- !llvm_android_mainline) {
|
|
- cflags += [
|
|
- "-mllvm",
|
|
- "-split-threshold-for-reg-with-hint=0",
|
|
- ]
|
|
- if (use_thin_lto && is_a_target_toolchain) {
|
|
- if (is_win) {
|
|
- ldflags += [ "-mllvm:-split-threshold-for-reg-with-hint=0" ]
|
|
- } else {
|
|
- ldflags += [ "-Wl,-mllvm,-split-threshold-for-reg-with-hint=0" ]
|
|
- }
|
|
- }
|
|
- }
|
|
-
|
|
# TODO(crbug.com/1235145): Investigate why/if this should be needed.
|
|
if (is_win) {
|
|
cflags += [ "/clang:-ffp-contract=off" ]
|
|
@@ -770,7 +752,6 @@
|
|
ldflags += [
|
|
"/opt:lldltojobs=all",
|
|
"-mllvm:-import-instr-limit=$import_instr_limit",
|
|
- "-mllvm:-disable-auto-upgrade-debug-info",
|
|
]
|
|
} else {
|
|
ldflags += [ "-flto=thin" ]
|
|
@@ -802,10 +783,6 @@
|
|
if (is_apple) {
|
|
ldflags += [ "-Wcrl,object_path_lto" ]
|
|
}
|
|
-
|
|
- # We only use one version of LLVM within a build so there's no need to
|
|
- # upgrade debug info, which can be expensive since it runs the verifier.
|
|
- ldflags += [ "-Wl,-mllvm,-disable-auto-upgrade-debug-info" ]
|
|
}
|
|
|
|
# TODO(https://crbug.com/1211155): investigate why this isn't effective on
|
|
@@ -1876,13 +1853,13 @@
|
|
"-Wno-vla-extension",
|
|
|
|
# TODO(https://crbug.com/1490607): Fix and re-enable.
|
|
- "-Wno-thread-safety-reference-return",
|
|
+ #"-Wno-thread-safety-reference-return",
|
|
]
|
|
|
|
if (!is_nacl) {
|
|
cflags_cc += [
|
|
# TODO(https://crbug.com/1513724): Fix and re-enable.
|
|
- "-Wno-c++11-narrowing-const-reference",
|
|
+ #"-Wno-c++11-narrowing-const-reference",
|
|
]
|
|
}
|
|
}
|