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

Side by Side Diff: build/common.gypi

Issue 1096553002: Do not use bundled gold when using GCC LTO. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Style 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 4521 matching lines...) Expand 10 before | Expand all | Expand 10 after
4532 }], 4532 }],
4533 ], 4533 ],
4534 }], 4534 }],
4535 ], 4535 ],
4536 }], 4536 }],
4537 ['linux_use_bundled_binutils==1', { 4537 ['linux_use_bundled_binutils==1', {
4538 'cflags': [ 4538 'cflags': [
4539 '-B<!(cd <(DEPTH) && pwd -P)/<(binutils_dir)', 4539 '-B<!(cd <(DEPTH) && pwd -P)/<(binutils_dir)',
4540 ], 4540 ],
4541 }], 4541 }],
4542 ['linux_use_bundled_gold==1', { 4542 ['linux_use_bundled_gold==1 and '
4543 'not (clang==0 and (use_lto==1 or use_lto_o2==1))', {
4543 # Put our binutils, which contains gold in the search path. We pass 4544 # Put our binutils, which contains gold in the search path. We pass
4544 # the path to gold to the compiler. gyp leaves unspecified what the 4545 # the path to gold to the compiler. gyp leaves unspecified what the
4545 # cwd is when running the compiler, so the normal gyp path-munging 4546 # cwd is when running the compiler, so the normal gyp path-munging
4546 # fails us. This hack gets the right path. 4547 # fails us. This hack gets the right path.
4548 #
4549 # Disabled when using GCC LTO because GCC also uses the -B search
4550 # path at link time to find "as", and our bundled "as" can only
4551 # target x86.
4547 'ldflags': [ 4552 'ldflags': [
4548 '-B<!(cd <(DEPTH) && pwd -P)/<(binutils_dir)', 4553 '-B<!(cd <(DEPTH) && pwd -P)/<(binutils_dir)',
4549 ], 4554 ],
4550 }], 4555 }],
4551 # Some binutils 2.23 releases may or may not have new dtags enabled, 4556 # Some binutils 2.23 releases may or may not have new dtags enabled,
4552 # but they are all compatible with --disable-new-dtags, 4557 # but they are all compatible with --disable-new-dtags,
4553 # because the new dynamic tags are not created by default. 4558 # because the new dynamic tags are not created by default.
4554 ['binutils_version>=223', { 4559 ['binutils_version>=223', {
4555 # Newer binutils don't set DT_RPATH unless you disable "new" dtags 4560 # Newer binutils don't set DT_RPATH unless you disable "new" dtags
4556 # and the new DT_RUNPATH doesn't work without --no-as-needed flag. 4561 # and the new DT_RUNPATH doesn't work without --no-as-needed flag.
(...skipping 1545 matching lines...) Expand 10 before | Expand all | Expand 10 after
6102 # settings in target dicts. SYMROOT is a special case, because many other 6107 # settings in target dicts. SYMROOT is a special case, because many other
6103 # Xcode variables depend on it, including variables such as 6108 # Xcode variables depend on it, including variables such as
6104 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 6109 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
6105 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 6110 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
6106 # files to appear (when present) in the UI as actual files and not red 6111 # files to appear (when present) in the UI as actual files and not red
6107 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 6112 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
6108 # and therefore SYMROOT, needs to be set at the project level. 6113 # and therefore SYMROOT, needs to be set at the project level.
6109 'SYMROOT': '<(DEPTH)/xcodebuild', 6114 'SYMROOT': '<(DEPTH)/xcodebuild',
6110 }, 6115 },
6111 } 6116 }
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