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

Side by Side Diff: build/common.gypi

Issue 1103393002: Pass -Oz flag to Clang when targeting Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix diff Created 5 years, 8 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 # IMPORTANT: 5 # IMPORTANT:
6 # Please don't directly include this file if you are building via gyp_chromium, 6 # Please don't directly include this file if you are building via gyp_chromium,
7 # since gyp_chromium is automatically forcing its inclusion. 7 # since gyp_chromium is automatically forcing its inclusion.
8 { 8 {
9 # Variables expected to be overriden on the GYP command line (-D) or by 9 # Variables expected to be overriden on the GYP command line (-D) or by
10 # ~/.gyp/include.gypi. 10 # ~/.gyp/include.gypi.
(...skipping 3723 matching lines...) Expand 10 before | Expand all | Expand 10 after
3734 }], 3734 }],
3735 ['OS=="android" and target_arch!="mipsel" and target_arch!="mips64 el"', { 3735 ['OS=="android" and target_arch!="mipsel" and target_arch!="mips64 el"', {
3736 # TODO(jdduke) Re-enable on mips after resolving linking 3736 # TODO(jdduke) Re-enable on mips after resolving linking
3737 # issues with libc++ (crbug.com/456380). 3737 # issues with libc++ (crbug.com/456380).
3738 'ldflags': [ 3738 'ldflags': [
3739 # Warn in case of text relocations. 3739 # Warn in case of text relocations.
3740 '-Wl,--warn-shared-textrel', 3740 '-Wl,--warn-shared-textrel',
3741 ], 3741 ],
3742 }], 3742 }],
3743 ['OS=="android"', { 3743 ['OS=="android"', {
3744 'variables': { 3744 'conditions': [
3745 'release_optimize%': 's', 3745 ['clang==1', {
3746 }, 3746 'variables': {
3747 'release_optimize%': 'z',
pasko 2015/04/30 15:48:48 counter-intuitively there is another file to be tw
3748 },
3749 }, {
3750 'variables': {
3751 'release_optimize%': 's',
3752 },
3753 }],
3754 ],
3747 }], 3755 }],
3748 ['profiling==1', { 3756 ['profiling==1', {
3749 'cflags': [ 3757 'cflags': [
3750 '-fno-omit-frame-pointer', 3758 '-fno-omit-frame-pointer',
3751 '-g', 3759 '-g',
3752 ], 3760 ],
3753 'conditions' : [ 3761 'conditions' : [
3754 ['profiling_full_stack_frames==1', { 3762 ['profiling_full_stack_frames==1', {
3755 'cflags': [ 3763 'cflags': [
3756 '-fno-inline', 3764 '-fno-inline',
(...skipping 2343 matching lines...) Expand 10 before | Expand all | Expand 10 after
6100 # settings in target dicts. SYMROOT is a special case, because many other 6108 # settings in target dicts. SYMROOT is a special case, because many other
6101 # Xcode variables depend on it, including variables such as 6109 # Xcode variables depend on it, including variables such as
6102 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 6110 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
6103 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 6111 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
6104 # files to appear (when present) in the UI as actual files and not red 6112 # files to appear (when present) in the UI as actual files and not red
6105 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 6113 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
6106 # and therefore SYMROOT, needs to be set at the project level. 6114 # and therefore SYMROOT, needs to be set at the project level.
6107 'SYMROOT': '<(DEPTH)/xcodebuild', 6115 'SYMROOT': '<(DEPTH)/xcodebuild',
6108 }, 6116 },
6109 } 6117 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698