From 82171f4e9e6c437960211fbb7ad90aa486a027d5 Mon Sep 17 00:00:00 2001 From: Alexander David Frick Date: Tue, 8 Feb 2022 00:47:44 -0600 Subject: [PATCH] Update for lacros --- build/config/compiler/BUILD.gn | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn index 56b9344b..f8954e24 100644 --- a/build/config/compiler/BUILD.gn +++ b/build/config/compiler/BUILD.gn @@ -129,7 +129,7 @@ declare_args() { # TODO(gbiv): We disable optimizations by default on most platforms because # the space overhead is too great. We should use some mixture of profiles and # optimization settings to better tune the size increase. - thin_lto_enable_optimizations = (is_chromeos_ash || is_android || is_win || + thin_lto_enable_optimizations = (is_chromeos || is_android || is_win || is_linux || is_mac) && is_official_build # Initialize all local variables with a pattern. This flag will fill @@ -710,7 +710,7 @@ config("compiler") { # ldflags += [ "-Wl,--thinlto-cache-policy=$cache_policy" ] - if (is_chromeos_ash) { + if (is_chromeos) { # Not much performance difference was noted between the default (100) # and these. ARM was originally set lower than x86 to keep the size # bloat of ThinLTO to <10%, but that's potentially no longer true.