Disable ThinLTO config moved gn files
Chromium change: https://chromium.googlesource.com/chromium/src/+/27b85b856d585c8669076222a8af1ab689c80ca8 commit 27b85b856d585c8669076222a8af1ab689c80ca8 Author: Hans Wennborg <hans@chromium.org> Date: Tue Jul 19 15:51:25 2022 +0000 Disable the ThinLTO cache for chrome on Linux It appears we're now hitting the vm.max_map_count limit for the chrome binary. Note that this is a non-functional change. Disabling the cache may make ThinLTO linking a little slower, but it does not affect the resulting binary. Bug: 1345158, 1183211
This commit is contained in:
committed by
mkarolin
parent
8ca8f3e7fe
commit
aec706ff2c
+3
-3
@@ -83,7 +83,7 @@ static_library("brave_test_support_unit") {
|
||||
test("brave_unit_tests") {
|
||||
testonly = true
|
||||
|
||||
configs += [ "//chrome/test:disable_thinlto_cache_flags" ]
|
||||
configs += [ "//chrome:disable_thinlto_cache_flags" ]
|
||||
|
||||
sources = [
|
||||
"//brave/browser/brave_ads/search_result_ad/search_result_ad_service_unittest.cc",
|
||||
@@ -636,7 +636,7 @@ if (!is_android) {
|
||||
"//brave/vendor/bat-native-ads:internal_config",
|
||||
"//brave/vendor/bat-native-ledger:internal_config",
|
||||
"//build/config:precompiled_headers",
|
||||
"//chrome/test:disable_thinlto_cache_flags",
|
||||
"//chrome:disable_thinlto_cache_flags",
|
||||
]
|
||||
|
||||
sources = [
|
||||
@@ -1051,7 +1051,7 @@ if (!is_android) {
|
||||
# We need to disable the ThinLTO cache or the linker will die with
|
||||
# a "Resource temporarily unavailable" error due to the linking
|
||||
# reaching the vm.max_map_count limit of 65530 memory mappings.
|
||||
configs += [ "//chrome/test:disable_thinlto_cache_flags" ]
|
||||
configs += [ "//chrome:disable_thinlto_cache_flags" ]
|
||||
|
||||
sources = [
|
||||
"//brave/browser/net/brave_network_audit_allowed_lists.h",
|
||||
|
||||
Reference in New Issue
Block a user