OLD | NEW |
1 # Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # This file is meant to be included to disable LTO on a target. | 5 # This file is meant to be included to disable LTO on a target. |
6 | 6 |
7 { | 7 { |
8 'target_conditions': [ | 8 'target_conditions': [ |
9 ['_toolset=="target"', { | 9 ['_toolset=="target"', { |
10 'conditions': [ | 10 'conditions': [ |
11 ['use_lto==1 or use_lto_o2==1', { | 11 ['OS=="android" and (use_lto==1 or use_lto_o2==1)', { |
12 'cflags!': [ | 12 'cflags!': [ |
13 '-flto', | 13 '-flto', |
14 '-ffat-lto-objects', | 14 '-ffat-lto-objects', |
15 ], | 15 ], |
16 }], | 16 }], |
17 ], | 17 ], |
18 }], | 18 }], |
19 ], | 19 ], |
20 } | 20 } |
OLD | NEW |