From e278e425f49c24d4bac7f1b3b6f04cafcbe4ea42 Mon Sep 17 00:00:00 2001 From: James Chen Date: Sat, 7 Oct 2023 09:52:48 +0800 Subject: [PATCH] PATCH: Remove -split-threshold-for-reg-with-hint=0 --- build/config/compiler/BUILD.gn | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn index 9c1887085..9e86a66d7 100644 --- a/build/config/compiler/BUILD.gn +++ b/build/config/compiler/BUILD.gn @@ -611,19 +611,19 @@ config("compiler") { # TODO(crbug.com/1488374): This causes binary size growth and potentially # other problems. - if (default_toolchain != "//build/toolchain/cros:target") { - 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" ] - } - } - } + #cjh if (default_toolchain != "//build/toolchain/cros:target") { + # 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) {