aboutsummaryrefslogtreecommitdiff
path: root/build/config/compiler/compiler.gni
diff options
context:
space:
mode:
Diffstat (limited to 'build/config/compiler/compiler.gni')
-rw-r--r--build/config/compiler/compiler.gni6
1 files changed, 3 insertions, 3 deletions
diff --git a/build/config/compiler/compiler.gni b/build/config/compiler/compiler.gni
index 636652d159..753748328a 100644
--- a/build/config/compiler/compiler.gni
+++ b/build/config/compiler/compiler.gni
@@ -135,9 +135,9 @@ declare_args() {
enable_cet_shadow_stack = target_cpu == "x64"
# Set to true to enable using the ML inliner in LLVM. This currently only
- # enables the ML inliner when targeting Android.
- # Currently the ML inliner is only supported on linux hosts
- use_ml_inliner = host_os == "linux" && is_android &&
+ # enables the ML inliner when targeting Android for a size-optimized build.
+ # Currently the ML inliner is only supported on linux hosts.
+ use_ml_inliner = host_os == "linux" && is_android && optimize_for_size &&
!llvm_android_mainline # https://crbug.com/1468680
# Set to true to use the android unwinder V2 implementation.