Skip to content

Commit

Permalink
PATCH: Remove -split-threshold-for-reg-with-hint=0
Browse files Browse the repository at this point in the history
  • Loading branch information
dumganhar committed Oct 7, 2023
1 parent 39ae419 commit e278e42
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions build/config/compiler/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e278e42

Please sign in to comment.