mirror of
https://github.com/Alex313031/thorium.git
synced 2025-01-10 03:47:44 -03:00
Update BUILD.gn
This commit is contained in:
parent
cb982e08fd
commit
35949b23f1
1 changed files with 3 additions and 0 deletions
|
@ -888,6 +888,7 @@ config("thinlto_optimize_default") {
|
|||
|
||||
if (is_win) {
|
||||
ldflags = [ "/opt:lldlto=" + lto_opt_level ]
|
||||
ldflags += [ "-mllvm:-enable-pre=false", ]
|
||||
} else {
|
||||
ldflags = [ "-Wl,--lto-O" + lto_opt_level ]
|
||||
}
|
||||
|
@ -912,6 +913,7 @@ config("thinlto_optimize_max") {
|
|||
|
||||
if (is_win) {
|
||||
ldflags = [ "/opt:lldlto=" + lto_opt_level ]
|
||||
ldflags += [ "-mllvm:-enable-pre=false", ]
|
||||
} else {
|
||||
ldflags = [ "-Wl,--lto-O" + lto_opt_level ]
|
||||
}
|
||||
|
@ -2151,6 +2153,7 @@ if (is_win) {
|
|||
# can be removed at link time with --gc-sections.
|
||||
"-fdata-sections",
|
||||
"-ffunction-sections",
|
||||
"-funique-section-names",
|
||||
]
|
||||
if ((!is_nacl || is_nacl_saigo) && is_clang) {
|
||||
# We don't care about unique section names, this makes object files a bit
|
||||
|
|
Loading…
Reference in a new issue