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 2790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2801 ['linux_keep_shadow_stacks==1', { | 2801 ['linux_keep_shadow_stacks==1', { |
2802 'defines': ['KEEP_SHADOW_STACKS'], | 2802 'defines': ['KEEP_SHADOW_STACKS'], |
2803 'cflags': [ | 2803 'cflags': [ |
2804 '-finstrument-functions', | 2804 '-finstrument-functions', |
2805 # Allow mmx intrinsics to inline, so that the compiler can expand | 2805 # Allow mmx intrinsics to inline, so that the compiler can expand |
2806 # the intrinsics. | 2806 # the intrinsics. |
2807 '-finstrument-functions-exclude-file-list=mmintrin.h', | 2807 '-finstrument-functions-exclude-file-list=mmintrin.h', |
2808 ], | 2808 ], |
2809 }], | 2809 }], |
2810 ['linux_use_gold_flags==1', { | 2810 ['linux_use_gold_flags==1', { |
| 2811 'ldflags': [ |
| 2812 # Experimentation found that using four linking threads |
| 2813 # saved ~20% of link time. |
| 2814 # https://groups.google.com/a/chromium.org/group/chromium-dev/brow
se_thread/thread/281527606915bb36 |
| 2815 '-Wl,--threads', |
| 2816 '-Wl,--thread-count=4', |
| 2817 ], |
2811 'conditions': [ | 2818 'conditions': [ |
2812 # Don't enable multi-threaded linking for 32-bit targets as it | |
2813 # causes intermittent crashed on lucid32: http://crbug.com/161942 | |
2814 # TODO(sbc): remove this once gold bug is fixed | |
2815 ['host_arch!="ia32"', { | |
2816 'ldflags': [ | |
2817 # Experimentation found that using four linking threads | |
2818 # saved ~20% of link time. | |
2819 # https://groups.google.com/a/chromium.org/group/chromium-dev/
browse_thread/thread/281527606915bb36 | |
2820 '-Wl,--threads', | |
2821 '-Wl,--thread-count=4', | |
2822 ], | |
2823 }], | |
2824 ['release_valgrind_build==0', { | 2819 ['release_valgrind_build==0', { |
2825 'target_conditions': [ | 2820 'target_conditions': [ |
2826 ['_toolset=="target"', { | 2821 ['_toolset=="target"', { |
2827 'ldflags': [ | 2822 'ldflags': [ |
2828 # There seems to be a conflict of --icf and -pie | 2823 # There seems to be a conflict of --icf and -pie |
2829 # in gold which can generate crashy binaries. As | 2824 # in gold which can generate crashy binaries. As |
2830 # a security measure, -pie takes precendence for | 2825 # a security measure, -pie takes precendence for |
2831 # now. | 2826 # now. |
2832 #'-Wl,--icf=safe', | 2827 #'-Wl,--icf=safe', |
2833 '-Wl,--icf=none', | 2828 '-Wl,--icf=none', |
(...skipping 1090 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3924 # settings in target dicts. SYMROOT is a special case, because many other | 3919 # settings in target dicts. SYMROOT is a special case, because many other |
3925 # Xcode variables depend on it, including variables such as | 3920 # Xcode variables depend on it, including variables such as |
3926 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 3921 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
3927 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 3922 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
3928 # files to appear (when present) in the UI as actual files and not red | 3923 # files to appear (when present) in the UI as actual files and not red |
3929 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 3924 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
3930 # and therefore SYMROOT, needs to be set at the project level. | 3925 # and therefore SYMROOT, needs to be set at the project level. |
3931 'SYMROOT': '<(DEPTH)/xcodebuild', | 3926 'SYMROOT': '<(DEPTH)/xcodebuild', |
3932 }, | 3927 }, |
3933 } | 3928 } |
OLD | NEW |