Skip to content

Commit e278e42

Browse files
committed
PATCH: Remove -split-threshold-for-reg-with-hint=0
1 parent 39ae419 commit e278e42

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

build/config/compiler/BUILD.gn

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -611,19 +611,19 @@ config("compiler") {
611611

612612
# TODO(crbug.com/1488374): This causes binary size growth and potentially
613613
# other problems.
614-
if (default_toolchain != "//build/toolchain/cros:target") {
615-
cflags += [
616-
"-mllvm",
617-
"-split-threshold-for-reg-with-hint=0",
618-
]
619-
if (use_thin_lto && is_a_target_toolchain) {
620-
if (is_win) {
621-
ldflags += [ "-mllvm:-split-threshold-for-reg-with-hint=0" ]
622-
} else {
623-
ldflags += [ "-Wl,-mllvm,-split-threshold-for-reg-with-hint=0" ]
624-
}
625-
}
626-
}
614+
#cjh if (default_toolchain != "//build/toolchain/cros:target") {
615+
# cflags += [
616+
# "-mllvm",
617+
# "-split-threshold-for-reg-with-hint=0",
618+
# ]
619+
# if (use_thin_lto && is_a_target_toolchain) {
620+
# if (is_win) {
621+
# ldflags += [ "-mllvm:-split-threshold-for-reg-with-hint=0" ]
622+
# } else {
623+
# ldflags += [ "-Wl,-mllvm,-split-threshold-for-reg-with-hint=0" ]
624+
# }
625+
# }
626+
# }
627627

628628
# TODO(crbug.com/1235145): Investigate why/if this should be needed.
629629
if (is_win) {

0 commit comments

Comments
 (0)