mirror of
https://github.com/Alex313031/thorium.git
synced 2025-01-10 11:57:48 -03:00
fix AVX2 part2
This commit is contained in:
parent
3d35d0fc56
commit
4b5ba6aadc
1 changed files with 6 additions and 8 deletions
|
@ -903,12 +903,13 @@ config("compiler") {
|
|||
# building with ThinLTO, no optimization is performed in the link step.
|
||||
config("thinlto_optimize_default") {
|
||||
if (!is_debug && use_thin_lto && is_a_target_toolchain) {
|
||||
lto_opt_level = 3
|
||||
|
||||
if (is_win) {
|
||||
ldflags = [ "/opt:lldlto=2" ]
|
||||
lto_opt_level = 2
|
||||
ldflags = [ "/opt:lldlto=" + lto_opt_level ]
|
||||
ldflags += [ "-mllvm:-enable-pre=false", ]
|
||||
} else {
|
||||
lto_opt_level = 3
|
||||
ldflags = [ "-Wl,--lto-O" + lto_opt_level ]
|
||||
}
|
||||
}
|
||||
|
@ -924,16 +925,13 @@ config("thinlto_optimize_default") {
|
|||
# use it on important targets such as the main browser executable or dll.
|
||||
config("thinlto_optimize_max") {
|
||||
if (!is_debug && use_thin_lto && is_a_target_toolchain) {
|
||||
if (thin_lto_enable_optimizations) {
|
||||
lto_opt_level = 3
|
||||
} else {
|
||||
lto_opt_level = 3
|
||||
}
|
||||
|
||||
if (is_win) {
|
||||
ldflags = [ "/opt:lldlto=2" ]
|
||||
lto_opt_level = 2
|
||||
ldflags = [ "/opt:lldlto=" + lto_opt_level ]
|
||||
ldflags += [ "-mllvm:-enable-pre=false", ]
|
||||
} else {
|
||||
lto_opt_level = 3
|
||||
ldflags = [ "-Wl,--lto-O" + lto_opt_level ]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue