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

Issue 1925843002: Make the GN build flag 'use_lld' usable on Linux. (Closed)

Created:
4 years, 7 months ago by pcc1
Modified:
4 years, 7 months ago
Reviewers:
krasin1, brettw, Nico
CC:
chromium-reviews, yunlian, eugenis+clang_chromium.org, glider+clang_chromium.org, dmikurube+clang_chromium.org, ukai+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make the GN build flag 'use_lld' usable on Linux. We are testing a new linker, LLD, for use within Chromium. This CL adds the necessary machinery to allow us to use LLD on Linux by enabling the existing GN build flag 'use_lld'. This CL teaches the LLVM package build script to build LLD on non-Windows platforms (for top-of-tree builds only), moves the 'use_lld' build flag from the Windows toolchain configuration to the generic GN compiler configuration, and gates the required linker flags for LLD on Linux on that flag. BUG=607968 R=thakis@chromium.org,brettw@chromium.org,krasin@chromium.org Committed: https://crrev.com/22afe741dcbb7bca0b792349f07fcac175716692 Cr-Commit-Position: refs/heads/master@{#390733}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address review comments #

Patch Set 3 : Move use_lld flag to build/toolchain/toolchain.gni #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -14 lines) Patch
M build/config/compiler/BUILD.gn View 1 2 5 chunks +15 lines, -8 lines 0 comments Download
M build/toolchain/toolchain.gni View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M build/toolchain/win/BUILD.gn View 1 chunk +0 lines, -5 lines 0 comments Download
M tools/clang/scripts/update.py View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 17 (7 generated)
pcc1
4 years, 7 months ago (2016-04-27 22:47:25 UTC) #1
brettw
https://codereview.chromium.org/1925843002/diff/1/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/1925843002/diff/1/build/config/compiler/BUILD.gn#newcode48 build/config/compiler/BUILD.gn:48: # Set to true to use lld, the LLVM ...
4 years, 7 months ago (2016-04-27 22:55:46 UTC) #2
pcc1
https://codereview.chromium.org/1925843002/diff/1/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/1925843002/diff/1/build/config/compiler/BUILD.gn#newcode48 build/config/compiler/BUILD.gn:48: # Set to true to use lld, the LLVM ...
4 years, 7 months ago (2016-04-27 23:21:05 UTC) #3
brettw
lgtm
4 years, 7 months ago (2016-04-27 23:35:21 UTC) #4
Nico
lgtm Might want to file a tracking bug for this and link to it in ...
4 years, 7 months ago (2016-04-29 17:02:03 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1925843002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1925843002/20001
4 years, 7 months ago (2016-04-29 17:52:28 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: win_clang on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/14655)
4 years, 7 months ago (2016-04-29 18:32:29 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1925843002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1925843002/40001
4 years, 7 months ago (2016-04-29 18:55:24 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 7 months ago (2016-04-29 20:15:24 UTC) #15
commit-bot: I haz the power
4 years, 7 months ago (2016-04-30 17:28:14 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/22afe741dcbb7bca0b792349f07fcac175716692
Cr-Commit-Position: refs/heads/master@{#390733}

Powered by Google App Engine
This is Rietveld 408576698