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

Issue 268363020: clang: Instead of having update.sh clobber out/, add a define with the current revision. (Closed)

Created:
6 years, 7 months ago by Nico
Modified:
6 years, 7 months ago
Reviewers:
hans, piman
CC:
chromium-reviews, eugenis+clang_chromium.org, glider+clang_chromium.org, dmikurube+clang_chromium.org, ukai+watch_chromium.org, piman, Mark Seaborn, David Yen, bradnelson
Visibility:
Public.

Description

clang: Instead of having update.sh clobber out/, add a define with the current revision. When clang is turned on or off, or when clang is updated, all .o files and all precompiled headers need to be rebuilt. This is currently done by having the update script remove the out/ directory. This has issues: * It fails to catch build directories with different names (e.g. out_android) * It removes other build artifacts (like resources) that don't need rebuilding * It doesn't happen when turning clang off (i.e. moving clang -> gcc). Instead, let common.gypi add a define with the current clang revision to each source file. This way, the clang revision is on each compile's command line and the build system's commandline tracking can take care of the rebuilding. BUG=nativeclient:3840 NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=269427

Patch Set 1 #

Total comments: 2

Patch Set 2 : onemore #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -13 lines) Patch
M build/common.gypi View 1 chunk +8 lines, -0 lines 0 comments Download
M tools/clang/scripts/update.sh View 1 4 chunks +5 lines, -13 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Nico
6 years, 7 months ago (2014-05-08 19:58:55 UTC) #1
hans
https://codereview.chromium.org/268363020/diff/1/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/268363020/diff/1/build/common.gypi#newcode2325 build/common.gypi:2325: 'defines': ['CR_CLANG_REVISION=<!(<(DEPTH)/tools/clang/scripts/update.sh --print-revision)'], Could we just shell out to ...
6 years, 7 months ago (2014-05-08 20:11:20 UTC) #2
Nico
Thanks! https://codereview.chromium.org/268363020/diff/1/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/268363020/diff/1/build/common.gypi#newcode2325 build/common.gypi:2325: 'defines': ['CR_CLANG_REVISION=<!(<(DEPTH)/tools/clang/scripts/update.sh --print-revision)'], On 2014/05/08 20:11:21, hans wrote: ...
6 years, 7 months ago (2014-05-08 20:17:28 UTC) #3
hans
On 2014/05/08 20:17:28, Nico wrote: > Thanks! > > https://codereview.chromium.org/268363020/diff/1/build/common.gypi > File build/common.gypi (right): > ...
6 years, 7 months ago (2014-05-08 20:29:20 UTC) #4
piman
LGTM, thanks!!
6 years, 7 months ago (2014-05-08 20:44:37 UTC) #5
Nico
The CQ bit was checked by thakis@chromium.org
6 years, 7 months ago (2014-05-08 21:01:51 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thakis@chromium.org/268363020/20001
6 years, 7 months ago (2014-05-08 21:07:43 UTC) #7
commit-bot: I haz the power
6 years, 7 months ago (2014-05-09 22:01:32 UTC) #8
Message was sent while issue was closed.
Change committed as 269427

Powered by Google App Engine
This is Rietveld 408576698