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

Issue 1373043003: CFI: download LLVM Gold plugin, if requested by env var or GYP_DEFINES. (Closed)

Created:
5 years, 2 months ago by krasin
Modified:
5 years, 2 months ago
Reviewers:
hans, Nico, pcc1, scottmg
CC:
chromium-reviews, eugenis+clang_chromium.org, glider+clang_chromium.org, dmikurube+clang_chromium.org, ukai+watch_chromium.org, kcc2, pcc1, Nico
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

CFI: download LLVM Gold plugin, if requested by env var or GYP_DEFINES. BUG=chromium:536159

Patch Set 1 #

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

Messages

Total messages: 29 (4 generated)
krasin
Hans, please, review this CL. It has two issues, which I am aware of: 1. ...
5 years, 2 months ago (2015-09-28 21:25:07 UTC) #2
scottmg
What's the current size of the toolchain vs. the 12M that'd be added? https://codereview.chromium.org/1373043003/diff/1/tools/clang/scripts/update.sh File ...
5 years, 2 months ago (2015-09-28 22:09:41 UTC) #4
hans
+pcc who added the current gold plugin downloading code, in case he has any additional ...
5 years, 2 months ago (2015-09-28 22:11:04 UTC) #6
hans
On 2015/09/28 22:09:41, scottmg wrote: > What's the current size of the toolchain vs. the ...
5 years, 2 months ago (2015-09-28 22:12:52 UTC) #7
krasin
On 2015/09/28 22:12:52, hans wrote: > On 2015/09/28 22:09:41, scottmg wrote: > > What's the ...
5 years, 2 months ago (2015-09-28 22:22:41 UTC) #8
krasin
Correction: 12 MB with bzip2 -9, still 13 MB with gzip -9.
5 years, 2 months ago (2015-09-28 22:24:52 UTC) #9
krasin
On 2015/09/28 22:24:52, krasin wrote: > Correction: 12 MB with bzip2 -9, still 13 MB ...
5 years, 2 months ago (2015-09-28 22:27:45 UTC) #10
krasin
On 2015/09/28 22:09:41, scottmg wrote: > What's the current size of the toolchain vs. the ...
5 years, 2 months ago (2015-09-28 22:32:37 UTC) #11
krasin
> On 2015/09/28 21:25:07, krasin wrote: > > 1. Gold plugin does not have a ...
5 years, 2 months ago (2015-09-28 22:38:52 UTC) #12
hans
On 2015/09/28 22:38:52, krasin wrote: > If we don't want to introduce another stamp (I ...
5 years, 2 months ago (2015-09-28 22:41:34 UTC) #13
krasin
On 2015/09/28 22:41:34, hans wrote: > On 2015/09/28 22:38:52, krasin wrote: > > If we ...
5 years, 2 months ago (2015-09-28 22:43:45 UTC) #14
scottmg
I'm inclined to say it's not really worth doing it conditionally unless we can simplify ...
5 years, 2 months ago (2015-09-28 22:43:49 UTC) #16
krasin
On 2015/09/28 22:43:49, scottmg wrote: > I'm inclined to say it's not really worth doing ...
5 years, 2 months ago (2015-09-28 22:46:57 UTC) #17
hans
On 2015/09/28 22:46:57, krasin wrote: > On 2015/09/28 22:43:49, scottmg wrote: > > I'm inclined ...
5 years, 2 months ago (2015-09-28 23:07:03 UTC) #18
krasin
Since we care about the Chromium LLVM toolchain distribution size and want to keep it ...
5 years, 2 months ago (2015-10-01 21:07:46 UTC) #19
krasin
Sorry, forgot to include the link to the spreadsheet with all the sizes: https://docs.google.com/spreadsheets/d/138ClPDBbtnPd_kNurBSyQEX5MnKjcBLeIqE56csBrhg/edit#gid=0
5 years, 2 months ago (2015-10-01 21:08:15 UTC) #20
krasin
On 2015/10/01 21:08:15, krasin wrote: > Sorry, forgot to include the link to the spreadsheet ...
5 years, 2 months ago (2015-10-01 21:23:29 UTC) #21
krasin
I have a brand new CL: https://codereview.chromium.org/1375213007/ In fact, the size of the archive (Gold ...
5 years, 2 months ago (2015-10-05 19:17:34 UTC) #22
Nico
i still think this is the way to go. needs the same change in the ...
5 years, 2 months ago (2015-10-08 02:27:25 UTC) #23
krasin
What's about gn? In case of gn, there could be no environment variables like that ...
5 years, 2 months ago (2015-10-08 02:44:34 UTC) #24
Nico
we can burn that bridge when we get to it. (how does the sysroot get ...
5 years, 2 months ago (2015-10-08 02:46:27 UTC) #25
krasin
On 2015/10/08 02:46:27, Nico (offline until Fri Oct 9) wrote: > we can burn that ...
5 years, 2 months ago (2015-10-08 02:47:11 UTC) #26
krasin
On 2015/10/08 02:47:11, krasin wrote: > On 2015/10/08 02:46:27, Nico (offline until Fri Oct 9) ...
5 years, 2 months ago (2015-10-08 02:48:19 UTC) #27
krasin
On 2015/10/08 02:48:19, krasin wrote: > On 2015/10/08 02:47:11, krasin wrote: > > On 2015/10/08 ...
5 years, 2 months ago (2015-10-08 02:50:29 UTC) #28
krasin
5 years, 2 months ago (2015-10-09 21:33:52 UTC) #29
Message was sent while issue was closed.
https://codereview.chromium.org/1373043003/diff/1/tools/clang/scripts/update.sh
File tools/clang/scripts/update.sh (right):

https://codereview.chromium.org/1373043003/diff/1/tools/clang/scripts/update....
tools/clang/scripts/update.sh:56: if [[ "$GYP_DEFINES" =~
.*(cfi_vptr|use_lto|use_lto_o2|official_build)=1.* ]]; then
On 2015/10/08 02:27:24, Nico (offline until Fri Oct 9) wrote:
> On 2015/09/28 22:11:04, hans wrote:
> > Seems like a lot of different options :-/ Can you rewrite this so it fits
> under
> > 80 columns? Maybe a for-loop over them would be cleaner?
> > 
> > Also, should the if-block be Linux-only? I assume we don't want to do this
> when
> > official_build=1 on Mac.
> 
> Yeah, I think you need buildtype=Official (and maybe branding=Chrome)
>
(https://code.google.com/p/chromium/codesearch#chromium/src/build/linux/sysroo...).
> 
> I'd expect that almost nobody uses these other toggles, and those who do know
> what to do.

Done in https://codereview.chromium.org/1385403006

https://codereview.chromium.org/1373043003/diff/1/tools/clang/scripts/update....
tools/clang/scripts/update.sh:242: if [[ -n "${LLVM_DOWNLOAD_GOLD_PLUGIN}" ]];
then
On 2015/09/28 22:11:04, hans wrote:
> The code below (line 285) already downloads the gold plugin if this variable
is
> set.
> 
> It would be better if the code here just checked if the gold plugin is already
> downloaded, and if not skips the exit 0 below. That would correspond nicely to
> the comment above: "Check if there's anything to be done, exit early if not."

Good idea. Done in https://codereview.chromium.org/1385403006

Powered by Google App Engine
This is Rietveld 408576698