Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Unified Diff: build/android/disable_gcc_lto.gypi

Issue 1289623006: build: On Android, disable LTO for specific targets only when targeting GCC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clarify comment in build/common.gypi; add TODO to use -lto_library Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | build/android/disable_lto.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/disable_gcc_lto.gypi
diff --git a/build/android/disable_lto.gypi b/build/android/disable_gcc_lto.gypi
similarity index 72%
rename from build/android/disable_lto.gypi
rename to build/android/disable_gcc_lto.gypi
index e379cfd3199ae1f6fe0a6fd6e7d1782b7e205954..a733c7aa0fc87251eba6fcbd566c95de8c8bed54 100644
--- a/build/android/disable_lto.gypi
+++ b/build/android/disable_gcc_lto.gypi
@@ -2,13 +2,13 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-# This file is meant to be included to disable LTO on a target.
+# This file is meant to be included to disable GCC LTO on a target.
{
'target_conditions': [
['_toolset=="target"', {
'conditions': [
- ['OS=="android" and (use_lto==1 or use_lto_o2==1)', {
+ ['OS=="android" and clang==0 and (use_lto==1 or use_lto_o2==1)', {
'cflags!': [
'-flto',
'-ffat-lto-objects',
« no previous file with comments | « no previous file | build/android/disable_lto.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698