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

Issue 2842063002: Pass -no-canonical-prefixes to clang by default. (Closed)

Created:
3 years, 8 months ago by Dirk Pranke
Modified:
3 years, 6 months ago
Reviewers:
Nico, shinyak
CC:
chromium-reviews, nodir
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Pass -no-canonical-prefixes to clang by default. When clang invokes its subtools, by default it passes a default path to them as an absolute path. We don't really need this to be absolute, and having goma stores the the command lines that in its cache entry keys, which means that differing absolute paths can cause cache misses. So, this CL tells clang to stop doing that. R=thakis@chromium.org, shinyak@chromium.org BUG=706224 Review-Url: https://codereview.chromium.org/2842063002 Cr-Commit-Position: refs/heads/master@{#478859} Committed: https://chromium.googlesource.com/chromium/src/+/0e8121522085f344b83cc86c514e4bfb7f7c5a22

Patch Set 1 #

Total comments: 7

Patch Set 2 : update w/ review feedback #

Total comments: 1

Patch Set 3 : add !is_nacl #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -0 lines) Patch
M build/config/compiler/BUILD.gn View 1 2 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (14 generated)
Dirk Pranke
Let me know if I've bungled this description of what the flag does or why ...
3 years, 8 months ago (2017-04-25 23:12:42 UTC) #1
Nico
https://codereview.chromium.org/2842063002/diff/1/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/2842063002/diff/1/build/config/compiler/BUILD.gn#newcode440 build/config/compiler/BUILD.gn:440: # Tells the compiler not to pass the default ...
3 years, 8 months ago (2017-04-25 23:21:07 UTC) #2
Dirk Pranke
https://codereview.chromium.org/2842063002/diff/1/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/2842063002/diff/1/build/config/compiler/BUILD.gn#newcode440 build/config/compiler/BUILD.gn:440: # Tells the compiler not to pass the default ...
3 years, 8 months ago (2017-04-25 23:26:45 UTC) #5
Nico
lgtm, thanks. https://codereview.chromium.org/2842063002/diff/1/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/2842063002/diff/1/build/config/compiler/BUILD.gn#newcode443 build/config/compiler/BUILD.gn:443: # clang, but it isn't. Can you ...
3 years, 8 months ago (2017-04-25 23:29:21 UTC) #6
Nico
And also, https://bugs.chromium.org/p/chromium/issues/detail?id=706224#c68 -- maybe this isn't needed after your other CL? On Tue, Apr ...
3 years, 8 months ago (2017-04-25 23:32:02 UTC) #7
Dirk Pranke
https://codereview.chromium.org/2842063002/diff/1/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/2842063002/diff/1/build/config/compiler/BUILD.gn#newcode443 build/config/compiler/BUILD.gn:443: # clang, but it isn't. On 2017/04/25 23:29:20, Nico ...
3 years, 8 months ago (2017-04-26 00:39:30 UTC) #8
shinyak
lgtm Goma can handle -no-canonical-prefixes since version 126, which has been rolled a few days ...
3 years, 8 months ago (2017-04-26 00:52:00 UTC) #9
Dirk Pranke
On 2017/04/26 00:52:00, shinyak wrote: > Could you upload a new patch set? We'd like ...
3 years, 8 months ago (2017-04-26 01:06:35 UTC) #10
shinyak (Google)
> Uploaded. What do you mean by "do a dry run"? Sorry, I mean "CQ ...
3 years, 8 months ago (2017-04-26 01:20:18 UTC) #11
shinyak
undo lgtm https://codereview.chromium.org/2842063002/diff/20001/build/config/compiler/BUILD.gn File build/config/compiler/BUILD.gn (right): https://codereview.chromium.org/2842063002/diff/20001/build/config/compiler/BUILD.gn#newcode447 build/config/compiler/BUILD.gn:447: if (is_clang && !is_win) { It looks ...
3 years, 8 months ago (2017-04-26 01:47:37 UTC) #16
Dirk Pranke
Updated; please take another look?
3 years, 8 months ago (2017-04-26 02:22:26 UTC) #18
shinyak
lgtm I'm OK if CQ passes. (But I'll check pitfalls abound pnacl-clang. I'm not sure ...
3 years, 8 months ago (2017-04-26 02:40:46 UTC) #20
Dirk Pranke
I'm going to try and land this now, let's see what happens ...
3 years, 6 months ago (2017-06-12 23:25:52 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2842063002/40001
3 years, 6 months ago (2017-06-12 23:26:36 UTC) #26
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/0e8121522085f344b83cc86c514e4bfb7f7c5a22
3 years, 6 months ago (2017-06-13 01:49:49 UTC) #29
richard.townsend
On 2017/06/13 01:49:49, commit-bot: I haz the power wrote: > Committed patchset #3 (id:40001) as ...
3 years, 6 months ago (2017-06-13 18:13:35 UTC) #30
Dirk Pranke
3 years, 6 months ago (2017-06-13 23:03:07 UTC) #31
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/2936053003/ by dpranke@chromium.org.

The reason for reverting is: This is possibly breaking CrOS builds, see comment
#30 and the updates on crbug.com/712797..

Powered by Google App Engine
This is Rietveld 408576698