From 287917d342224d34d6fbdf863aee8417a5f2e8b8 Mon Sep 17 00:00:00 2001 From: Zachary Anderson Date: Fri, 10 Mar 2023 13:46:45 -0800 Subject: [PATCH] Allow enabling LTO for macOS builds (#691) --- build/config/compiler/BUILD.gn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn index 8d865e9c92e73..d0e81ef850696 100644 --- a/build/config/compiler/BUILD.gn +++ b/build/config/compiler/BUILD.gn @@ -880,7 +880,7 @@ config("optimize") { } lto_flags = [] - if (enable_lto && (is_ios || is_android || is_fuchsia || is_wasm)) { + if (enable_lto && (is_ios || is_mac || is_android || is_fuchsia || is_wasm)) { lto_flags += [ "-flto" ] }