fix macOS ldflags

This commit is contained in:
Alexander Frick 2024-04-19 11:23:33 -05:00
parent e9fb9494c1
commit c7702c55c9

View file

@ -144,11 +144,13 @@ config("pgo_optimization_flags") {
if (use_thin_lto) {
if (is_win) {
ldflags = [ "-mllvm:-enable-ext-tsp-block-placement=1" ]
} else {
} else if (is_linux) {
ldflags = [
"-Wl,-mllvm,-enable-ext-tsp-block-placement",
"-Wl,-mllvm,-enable-split-machine-functions",
]
} else {
ldflags = [ "-Wl,-mllvm,-enable-ext-tsp-block-placement=1" ]
}
} else {
cflags += [