From aec706ff2ca184d063f8ce5f05fa83a256a4f74a Mon Sep 17 00:00:00 2001 From: Claudio DeSouza Date: Fri, 22 Jul 2022 11:24:28 +0100 Subject: [PATCH] Disable ThinLTO config moved gn files Chromium change: https://chromium.googlesource.com/chromium/src/+/27b85b856d585c8669076222a8af1ab689c80ca8 commit 27b85b856d585c8669076222a8af1ab689c80ca8 Author: Hans Wennborg 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 --- test/BUILD.gn | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/BUILD.gn b/test/BUILD.gn index 8df644e8b07..238d59e3c3a 100644 --- a/test/BUILD.gn +++ b/test/BUILD.gn @@ -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",