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 3857 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3868 # There seems to be a conflict of --icf and -pie | 3868 # There seems to be a conflict of --icf and -pie |
3869 # in gold which can generate crashy binaries. As | 3869 # in gold which can generate crashy binaries. As |
3870 # a security measure, -pie takes precendence for | 3870 # a security measure, -pie takes precendence for |
3871 # now. | 3871 # now. |
3872 #'-Wl,--icf=safe', | 3872 #'-Wl,--icf=safe', |
3873 '-Wl,--icf=none', | 3873 '-Wl,--icf=none', |
3874 ], | 3874 ], |
3875 }], | 3875 }], |
3876 ], | 3876 ], |
3877 }], | 3877 }], |
| 3878 # Newer gcc's support -fuse-ld, use the flag to force gold |
| 3879 # selection. |
| 3880 # gcc -- http://gcc.gnu.org/onlinedocs/gcc-4.8.0/gcc/Optimize-Opti
ons.html |
| 3881 # TODO(mithro): Watch for clang support at following thread: |
| 3882 # http://clang-developers.42468.n3.nabble.com/Adding-fuse-ld-suppo
rt-to-clang-td4032180.html |
| 3883 ['gcc_version>=48', { |
| 3884 'cflags': [ |
| 3885 '-fuse-ld=gold', |
| 3886 ], |
| 3887 'ldflags': [ |
| 3888 '-fuse-ld=gold', |
| 3889 ], |
| 3890 }] |
3878 ], | 3891 ], |
3879 }], | 3892 }], |
3880 ['linux_use_gold_binary==1', { | 3893 ['linux_use_gold_binary==1', { |
3881 # Put our binutils, which contains gold in the search path. We pass | 3894 # Put our binutils, which contains gold in the search path. We pass |
3882 # the path to gold to the compiler. gyp leaves unspecified what the | 3895 # the path to gold to the compiler. gyp leaves unspecified what the |
3883 # cwd is when running the compiler, so the normal gyp path-munging | 3896 # cwd is when running the compiler, so the normal gyp path-munging |
3884 # fails us. This hack gets the right path. | 3897 # fails us. This hack gets the right path. |
3885 'cflags': [ | 3898 'cflags': [ |
3886 '-B<!(cd <(DEPTH) && pwd -P)/<(binutils_dir)', | 3899 '-B<!(cd <(DEPTH) && pwd -P)/<(binutils_dir)', |
3887 ], | 3900 ], |
(...skipping 1362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5250 # settings in target dicts. SYMROOT is a special case, because many other | 5263 # settings in target dicts. SYMROOT is a special case, because many other |
5251 # Xcode variables depend on it, including variables such as | 5264 # Xcode variables depend on it, including variables such as |
5252 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5265 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
5253 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5266 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
5254 # files to appear (when present) in the UI as actual files and not red | 5267 # files to appear (when present) in the UI as actual files and not red |
5255 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5268 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
5256 # and therefore SYMROOT, needs to be set at the project level. | 5269 # and therefore SYMROOT, needs to be set at the project level. |
5257 'SYMROOT': '<(DEPTH)/xcodebuild', | 5270 'SYMROOT': '<(DEPTH)/xcodebuild', |
5258 }, | 5271 }, |
5259 } | 5272 } |
OLD | NEW |