Chromium Code Reviews| Index: build/android/disable_lto.gypi |
| diff --git a/build/android/disable_lto.gypi b/build/android/disable_lto.gypi |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..448945ce08c8f60d610dcb63c40218f647eef965 |
| --- /dev/null |
| +++ b/build/android/disable_lto.gypi |
| @@ -0,0 +1,20 @@ |
| +# Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| +# 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. |
| + |
| +{ |
| + 'target_conditions': [ |
|
no sievers
2014/10/10 18:57:32
should this also check for os == android?
Fabrice (no longer in Chrome)
2014/10/13 15:45:12
use_lto should not be used with anything other tha
|
| + ['_toolset=="target"', { |
| + 'conditions': [ |
| + ['use_lto==1 or use_lto_o2==1', { |
| + 'cflags!': [ |
| + '-flto', |
| + '-ffat-lto-objects', |
| + ], |
| + }], |
| + ], |
| + }], |
| + ], |
| +} |