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

Issue 980633003: Clang update script: download pre-built modern gcc and CMake if necessary (Closed)

Created:
5 years, 9 months ago by hans
Modified:
5 years, 9 months ago
Reviewers:
Nico
CC:
chromium-reviews, 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

Clang update script: download pre-built modern gcc and CMake if necessary This allows Precise builders using LLVM_FORCE_HEAD_REVISION to build LLVM and Clang even though their system gcc and cmake are too old. BUG=452726 NOTRY=true Committed: https://crrev.com/8980eb7a634ec8de9cf1b7899f47939eb5cbd291 Cr-Commit-Position: refs/heads/master@{#319130}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Actually, needed more if's #

Total comments: 1

Patch Set 3 : Simplify #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -4 lines) Patch
M tools/clang/scripts/update.sh View 1 2 3 chunks +32 lines, -4 lines 2 comments Download

Messages

Total messages: 19 (5 generated)
hans
Please take a look.
5 years, 9 months ago (2015-03-04 20:45:30 UTC) #2
Nico
lgtm, that's a lot shorter than i feared https://codereview.chromium.org/980633003/diff/1/tools/clang/scripts/update.sh File tools/clang/scripts/update.sh (right): https://codereview.chromium.org/980633003/diff/1/tools/clang/scripts/update.sh#newcode174 tools/clang/scripts/update.sh:174: fi ...
5 years, 9 months ago (2015-03-04 20:51:19 UTC) #3
hans
maybe take another look? https://codereview.chromium.org/980633003/diff/1/tools/clang/scripts/update.sh File tools/clang/scripts/update.sh (right): https://codereview.chromium.org/980633003/diff/1/tools/clang/scripts/update.sh#newcode174 tools/clang/scripts/update.sh:174: fi On 2015/03/04 20:51:19, Nico ...
5 years, 9 months ago (2015-03-04 21:00:13 UTC) #4
Nico
still lgtm https://codereview.chromium.org/980633003/diff/20001/tools/clang/scripts/update.sh File tools/clang/scripts/update.sh (right): https://codereview.chromium.org/980633003/diff/20001/tools/clang/scripts/update.sh#newcode168 tools/clang/scripts/update.sh:168: if [[ "${OS}" == "Linux" ]] && ...
5 years, 9 months ago (2015-03-04 21:03:01 UTC) #5
hans
On 2015/03/04 21:03:01, Nico wrote: > still lgtm > > https://codereview.chromium.org/980633003/diff/20001/tools/clang/scripts/update.sh > File tools/clang/scripts/update.sh (right): ...
5 years, 9 months ago (2015-03-04 21:15:57 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/980633003/40001
5 years, 9 months ago (2015-03-04 21:17:52 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/980633003/40001
5 years, 9 months ago (2015-03-04 21:23:29 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 9 months ago (2015-03-04 21:24:20 UTC) #13
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/8980eb7a634ec8de9cf1b7899f47939eb5cbd291 Cr-Commit-Position: refs/heads/master@{#319130}
5 years, 9 months ago (2015-03-04 21:25:01 UTC) #14
Nico
https://codereview.chromium.org/980633003/diff/40001/tools/clang/scripts/update.sh File tools/clang/scripts/update.sh (right): https://codereview.chromium.org/980633003/diff/40001/tools/clang/scripts/update.sh#newcode171 tools/clang/scripts/update.sh:171: if [[ ! -e "${LLVM_BUILD_TOOLS_DIR}/gcc482" ]]; then This if ...
5 years, 9 months ago (2015-03-05 03:55:18 UTC) #15
Nico
https://codereview.chromium.org/980633003/diff/40001/tools/clang/scripts/update.sh File tools/clang/scripts/update.sh (right): https://codereview.chromium.org/980633003/diff/40001/tools/clang/scripts/update.sh#newcode194 tools/clang/scripts/update.sh:194: export PATH="${LLVM_BUILD_TOOLS_DIR}/cmake310/bin:${PATH}" …and this should probably run before the ...
5 years, 9 months ago (2015-03-05 03:58:39 UTC) #16
hans
On 2015/03/05 03:55:18, Nico wrote: > https://codereview.chromium.org/980633003/diff/40001/tools/clang/scripts/update.sh > File tools/clang/scripts/update.sh (right): > > https://codereview.chromium.org/980633003/diff/40001/tools/clang/scripts/update.sh#newcode171 > ...
5 years, 9 months ago (2015-03-05 04:20:38 UTC) #17
hans
On 2015/03/05 03:58:39, Nico wrote: > https://codereview.chromium.org/980633003/diff/40001/tools/clang/scripts/update.sh > File tools/clang/scripts/update.sh (right): > > https://codereview.chromium.org/980633003/diff/40001/tools/clang/scripts/update.sh#newcode194 > ...
5 years, 9 months ago (2015-03-05 04:23:41 UTC) #18
Nico
5 years, 9 months ago (2015-03-05 04:26:28 UTC) #19
Message was sent while issue was closed.
You're right, I guess downloading this every time isn't really a problem.
(Makes it a bit harder to find the LLVM revision when looking for
regression ranges, but I'll just have to learn to cmd-f "updated to
revision" or something)

On Wed, Mar 4, 2015 at 8:23 PM, <hans@chromium.org> wrote:

> On 2015/03/05 03:58:39, Nico wrote:
>
> https://codereview.chromium.org/980633003/diff/40001/
> tools/clang/scripts/update.sh
>
>> File tools/clang/scripts/update.sh (right):
>>
>
>
> https://codereview.chromium.org/980633003/diff/40001/
> tools/clang/scripts/update.sh#newcode194
>
>> tools/clang/scripts/update.sh:194: export
>> PATH="${LLVM_BUILD_TOOLS_DIR}/cmake310/bin:${PATH}"
>> …and this should probably run before the `cmake --version` line. If the
>> directory doesn't exist the if will then be entered if cmake is too old,
>> and
>> won't be entered if cmake was already downloaded before
>>
>
> It feels a bit ugly to add a non-existing dir to PATH if the system cmake
> is new
> enough. Someone looking at the path later might get confused about what
> we're
> using.
>
> The code already won't download if the dir exists. Isn't that good enough?
> The
> dir also has a version number in it, so if we decide to move to a newer
> one we'd
> use a different dir name and not get stuck on an old one.
>
> https://codereview.chromium.org/980633003/
>

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698