OLD | NEW |
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 3817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3828 # Android now supports .relro sections properly. | 3828 # Android now supports .relro sections properly. |
3829 # NOTE: While these flags enable the generation of .relro | 3829 # NOTE: While these flags enable the generation of .relro |
3830 # sections, the generated libraries can still be loaded on | 3830 # sections, the generated libraries can still be loaded on |
3831 # older Android platform versions. | 3831 # older Android platform versions. |
3832 'ldflags': [ | 3832 'ldflags': [ |
3833 '-Wl,-z,relro', | 3833 '-Wl,-z,relro', |
3834 '-Wl,-z,now', | 3834 '-Wl,-z,now', |
3835 '-fuse-ld=gold', | 3835 '-fuse-ld=gold', |
3836 ], | 3836 ], |
3837 'conditions': [ | 3837 'conditions': [ |
| 3838 ['gcc_version==48 and clang==0', { |
| 3839 'cflags': [ |
| 3840 # The following 5 options are disabled to save on |
| 3841 # binary size in GCC 4.8. |
| 3842 '-fno-partial-inlining', |
| 3843 '-fno-early-inlining', |
| 3844 '-fno-tree-copy-prop', |
| 3845 '-fno-tree-loop-optimize', |
| 3846 '-fno-move-loop-invariants', |
| 3847 ], |
| 3848 }], |
3838 ['arm_thumb==1', { | 3849 ['arm_thumb==1', { |
3839 'cflags': [ '-mthumb-interwork' ], | 3850 'cflags': [ '-mthumb-interwork' ], |
3840 }], | 3851 }], |
3841 ['profiling==1', { | 3852 ['profiling==1', { |
3842 'cflags': [ | 3853 'cflags': [ |
3843 # Thumb code with frame pointer makes chrome crash | 3854 # Thumb code with frame pointer makes chrome crash |
3844 # early. | 3855 # early. |
3845 '-marm', | 3856 '-marm', |
3846 '-mapcs-frame', # Required by -fno-omit-frame-pointer. | 3857 '-mapcs-frame', # Required by -fno-omit-frame-pointer. |
3847 # The perf report sometimes incorrectly attributes | 3858 # The perf report sometimes incorrectly attributes |
(...skipping 1906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5754 # settings in target dicts. SYMROOT is a special case, because many other | 5765 # settings in target dicts. SYMROOT is a special case, because many other |
5755 # Xcode variables depend on it, including variables such as | 5766 # Xcode variables depend on it, including variables such as |
5756 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5767 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
5757 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5768 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
5758 # files to appear (when present) in the UI as actual files and not red | 5769 # files to appear (when present) in the UI as actual files and not red |
5759 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5770 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
5760 # and therefore SYMROOT, needs to be set at the project level. | 5771 # and therefore SYMROOT, needs to be set at the project level. |
5761 'SYMROOT': '<(DEPTH)/xcodebuild', | 5772 'SYMROOT': '<(DEPTH)/xcodebuild', |
5762 }, | 5773 }, |
5763 } | 5774 } |
OLD | NEW |