PKGBUILDs/extra/chromium/drop-flags-unsupported-by-clang16.patch

41 lines
1.5 KiB
Diff
Raw Normal View History

2023-12-05 22:41:02 +00:00
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
2024-02-15 13:52:16 +00:00
index 89b4755ac8b3..94b457385663 100644
2023-12-05 22:41:02 +00:00
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
2024-02-15 13:52:16 +00:00
@@ -618,24 +618,6 @@ config("compiler") {
2023-12-05 22:41:02 +00:00
}
}
- # 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" ]
2024-02-15 13:52:16 +00:00
@@ -802,10 +784,6 @@ config("compiler") {
2023-12-05 22:41:02 +00:00
if (is_apple) {
ldflags += [ "-Wcrl,object_path_lto" ]
}
2024-02-15 13:52:16 +00:00
-
- # 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" ]
2023-12-05 22:41:02 +00:00
}
# TODO(https://crbug.com/1211155): investigate why this isn't effective on