mirror of
https://github.com/Alex313031/thorium.git
synced 2025-01-10 11:57:48 -03:00
Update BUILD.gn
This commit is contained in:
parent
365cf24c0f
commit
064f909228
1 changed files with 15 additions and 0 deletions
|
@ -113,6 +113,16 @@ group("assert_no_deps") {
|
||||||
assert_no_deps = [ "//chrome/installer/util:strings" ]
|
assert_no_deps = [ "//chrome/installer/util:strings" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
config("disable_thinlto_cache_flags") {
|
||||||
|
if (is_linux && use_thin_lto) {
|
||||||
|
# This build target has so many inputs that LLD will run into the default
|
||||||
|
# vm.max_map_count limit of 65530 memory mappings when using the ThinLTO
|
||||||
|
# cache.
|
||||||
|
# TODO (crbug.com/1183211): Re-enable once the linker has been fixed.
|
||||||
|
ldflags = [ "-Wl,--thinlto-cache-dir=" ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!is_android && !is_mac) {
|
if (!is_android && !is_mac) {
|
||||||
group("chrome") {
|
group("chrome") {
|
||||||
public_deps = [ ":chrome_initial" ]
|
public_deps = [ ":chrome_initial" ]
|
||||||
|
@ -135,6 +145,11 @@ if (!is_android && !is_mac) {
|
||||||
executable("chrome_initial") {
|
executable("chrome_initial") {
|
||||||
configs -= [ "//build/config/compiler:thinlto_optimize_default" ]
|
configs -= [ "//build/config/compiler:thinlto_optimize_default" ]
|
||||||
configs += [ "//build/config/compiler:thinlto_optimize_max" ]
|
configs += [ "//build/config/compiler:thinlto_optimize_max" ]
|
||||||
|
|
||||||
|
# TODO (crbug.com/1345158): Re-enable once the linker has been fixed or
|
||||||
|
# the limit on the bots raised.
|
||||||
|
configs += [ ":disable_thinlto_cache_flags" ]
|
||||||
|
|
||||||
if (is_win) {
|
if (is_win) {
|
||||||
output_name = "initialexe/thorium"
|
output_name = "initialexe/thorium"
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue