build: On Android, disable LTO for specific targets only when targeting GCC.
[chromium-blink-merge.git] / build / android / disable_gcc_lto.gypi
bloba733c7aa0fc87251eba6fcbd566c95de8c8bed54
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
3 # found in the LICENSE file.
5 # This file is meant to be included to disable GCC LTO on a target.
8   'target_conditions': [
9     ['_toolset=="target"', {
10       'conditions': [
11         ['OS=="android" and clang==0 and (use_lto==1 or use_lto_o2==1)', {
12           'cflags!': [
13             '-flto',
14             '-ffat-lto-objects',
15           ],
16         }],
17       ],
18     }],
19   ],