2023-12-05 22:41:02 +00:00
|
|
|
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
|
2024-06-12 12:55:18 +00:00
|
|
|
index 6efe967eb0a1..590a2c274ac1 100644
|
2023-12-05 22:41:02 +00:00
|
|
|
--- a/build/config/compiler/BUILD.gn
|
|
|
|
+++ b/build/config/compiler/BUILD.gn
|
2024-06-12 12:55:18 +00:00
|
|
|
@@ -568,24 +568,6 @@ config("compiler") {
|
2023-12-05 22:41:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-06-12 12:55:18 +00:00
|
|
|
- # TODO(crbug.com/40283598): This causes binary size growth and potentially
|
2023-12-05 22:41:02 +00:00
|
|
|
- # other problems.
|
2024-06-12 12:55:18 +00:00
|
|
|
- # TODO(crbug.com/40284925): This isn't supported by Cronet's mainline llvm version.
|
2023-12-05 22:41:02 +00:00
|
|
|
- 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" ]
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-
|
2024-06-12 12:55:18 +00:00
|
|
|
# TODO(crbug.com/40192287): Investigate why/if this should be needed.
|
2023-12-05 22:41:02 +00:00
|
|
|
if (is_win) {
|
|
|
|
cflags += [ "/clang:-ffp-contract=off" ]
|