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 2769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2780 ['linux_keep_shadow_stacks==1', { | 2780 ['linux_keep_shadow_stacks==1', { |
2781 'defines': ['KEEP_SHADOW_STACKS'], | 2781 'defines': ['KEEP_SHADOW_STACKS'], |
2782 'cflags': [ | 2782 'cflags': [ |
2783 '-finstrument-functions', | 2783 '-finstrument-functions', |
2784 # Allow mmx intrinsics to inline, so that the compiler can expand | 2784 # Allow mmx intrinsics to inline, so that the compiler can expand |
2785 # the intrinsics. | 2785 # the intrinsics. |
2786 '-finstrument-functions-exclude-file-list=mmintrin.h', | 2786 '-finstrument-functions-exclude-file-list=mmintrin.h', |
2787 ], | 2787 ], |
2788 }], | 2788 }], |
2789 ['linux_use_gold_flags==1', { | 2789 ['linux_use_gold_flags==1', { |
2790 'ldflags': [ | |
2791 # Experimentation found that using four linking threads | |
2792 # saved ~20% of link time. | |
2793 # https://groups.google.com/a/chromium.org/group/chromium-dev/brow
se_thread/thread/281527606915bb36 | |
2794 '-Wl,--threads', | |
2795 '-Wl,--thread-count=4', | |
2796 ], | |
2797 'conditions': [ | 2790 'conditions': [ |
| 2791 # Don't enable multi-threaded linking for 32-bit targets as it |
| 2792 # causes intermittent crashed on lucid32: http://crbug.com/161942 |
| 2793 # TODO(sbc): remove this once gold bug is fixed |
| 2794 ['host_arch!="ia32"', { |
| 2795 'ldflags': [ |
| 2796 # Experimentation found that using four linking threads |
| 2797 # saved ~20% of link time. |
| 2798 # https://groups.google.com/a/chromium.org/group/chromium-dev/
browse_thread/thread/281527606915bb36 |
| 2799 '-Wl,--threads', |
| 2800 '-Wl,--thread-count=4', |
| 2801 ], |
| 2802 }], |
2798 ['release_valgrind_build==0', { | 2803 ['release_valgrind_build==0', { |
2799 'target_conditions': [ | 2804 'target_conditions': [ |
2800 ['_toolset=="target"', { | 2805 ['_toolset=="target"', { |
2801 'ldflags': [ | 2806 'ldflags': [ |
2802 # There seems to be a conflict of --icf and -pie | 2807 # There seems to be a conflict of --icf and -pie |
2803 # in gold which can generate crashy binaries. As | 2808 # in gold which can generate crashy binaries. As |
2804 # a security measure, -pie takes precendence for | 2809 # a security measure, -pie takes precendence for |
2805 # now. | 2810 # now. |
2806 #'-Wl,--icf=safe', | 2811 #'-Wl,--icf=safe', |
2807 '-Wl,--icf=none', | 2812 '-Wl,--icf=none', |
(...skipping 1093 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3901 # settings in target dicts. SYMROOT is a special case, because many other | 3906 # settings in target dicts. SYMROOT is a special case, because many other |
3902 # Xcode variables depend on it, including variables such as | 3907 # Xcode variables depend on it, including variables such as |
3903 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 3908 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
3904 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 3909 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
3905 # files to appear (when present) in the UI as actual files and not red | 3910 # files to appear (when present) in the UI as actual files and not red |
3906 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 3911 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
3907 # and therefore SYMROOT, needs to be set at the project level. | 3912 # and therefore SYMROOT, needs to be set at the project level. |
3908 'SYMROOT': '<(DEPTH)/xcodebuild', | 3913 'SYMROOT': '<(DEPTH)/xcodebuild', |
3909 }, | 3914 }, |
3910 } | 3915 } |
OLD | NEW |