From d4321a92c642afc9ed6f4e2b41e158482cebf304 Mon Sep 17 00:00:00 2001 From: hans Date: Thu, 2 Feb 2017 19:43:23 -0800 Subject: [PATCH] Turn off LTO again for Official Win/Clang LLD builds We're not working on this config at the moment, so having a red buildbot testing it is just waste of cycles. BUG=688123, 598772 Review-Url: https://codereview.chromium.org/2677593002 Cr-Original-Commit-Position: refs/heads/master@{#447910} Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src Cr-Mirrored-Commit: 3ba9c67e210df1f039f93548c1ad5bb2dfe3a945 --- config/compiler/BUILD.gn | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/config/compiler/BUILD.gn b/config/compiler/BUILD.gn index 16c8a7aed..65a8847e2 100644 --- a/config/compiler/BUILD.gn +++ b/config/compiler/BUILD.gn @@ -1490,9 +1490,8 @@ config("optimize_max") { # incremental value of C4702 for PGO builds is likely very small. "/wd4702", ] - } else if (is_clang && use_lld) { - cflags += [ "-flto" ] # Link-time optimization (whole program optimization). } + # TODO(crbug.com/598772): Enable -flto for Clang. } } else if (optimize_for_fuzzing) { cflags = [ "-O1" ] + common_optimize_on_cflags