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

Issue 2075703002: [Mac/iOS/GN] Place a version in the command of toolchain tools implemented using scripts. (Closed)

Created:
4 years, 6 months ago by Robert Sesek
Modified:
4 years, 6 months ago
Reviewers:
brettw, sdefresne
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Mac/iOS/GN] Place a version in the command of toolchain tools implemented using scripts. When a tool is implemented as a script, modification of the script does not cause any dependent build steps to be dirtied and rebuilt, since the script isn't listed as an input. To hack around this, use another script to get the tool script's modification time and use that as the command line tool version. This still won't cause rebuild if just the script changes, but when the build files are regenerated (like after apply_patch and generate_build_files on the bots), the dependent build steps will get rebuilt. BUG=619083 R=brettw@chromium.org, sdefresne@chromium.org Committed: https://chromium.googlesource.com/chromium/src/+/f2eb108ab1e65962104bfde275743369b0e7665b

Patch Set 1 #

Total comments: 6

Patch Set 2 : Single exec_script #

Total comments: 2

Patch Set 3 : Move up #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -2 lines) Patch
M build/toolchain/mac/BUILD.gn View 1 2 5 chunks +28 lines, -2 lines 0 comments Download
A build/toolchain/mac/get_tool_mtime.py View 1 1 chunk +17 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
Robert Sesek
4 years, 6 months ago (2016-06-16 17:59:00 UTC) #1
sdefresne
https://codereview.chromium.org/2075703002/diff/1/build/toolchain/mac/BUILD.gn File build/toolchain/mac/BUILD.gn (right): https://codereview.chromium.org/2075703002/diff/1/build/toolchain/mac/BUILD.gn#newcode154 build/toolchain/mac/BUILD.gn:154: tool_version = exec_script(get_tool_mtime, [ script ], "trim string") I'm ...
4 years, 6 months ago (2016-06-16 18:15:25 UTC) #2
Robert Sesek
https://codereview.chromium.org/2075703002/diff/1/build/toolchain/mac/BUILD.gn File build/toolchain/mac/BUILD.gn (right): https://codereview.chromium.org/2075703002/diff/1/build/toolchain/mac/BUILD.gn#newcode154 build/toolchain/mac/BUILD.gn:154: tool_version = exec_script(get_tool_mtime, [ script ], "trim string") On ...
4 years, 6 months ago (2016-06-16 18:26:16 UTC) #3
brettw
https://codereview.chromium.org/2075703002/diff/1/build/toolchain/mac/BUILD.gn File build/toolchain/mac/BUILD.gn (right): https://codereview.chromium.org/2075703002/diff/1/build/toolchain/mac/BUILD.gn#newcode62 build/toolchain/mac/BUILD.gn:62: # When implementing tools using Python scripts, a TOOL_VERSION=N ...
4 years, 6 months ago (2016-06-17 17:29:43 UTC) #4
Robert Sesek
https://codereview.chromium.org/2075703002/diff/1/build/toolchain/mac/BUILD.gn File build/toolchain/mac/BUILD.gn (right): https://codereview.chromium.org/2075703002/diff/1/build/toolchain/mac/BUILD.gn#newcode62 build/toolchain/mac/BUILD.gn:62: # When implementing tools using Python scripts, a TOOL_VERSION=N ...
4 years, 6 months ago (2016-06-17 18:07:53 UTC) #5
brettw
lgtm https://codereview.chromium.org/2075703002/diff/20001/build/toolchain/mac/BUILD.gn File build/toolchain/mac/BUILD.gn (right): https://codereview.chromium.org/2075703002/diff/20001/build/toolchain/mac/BUILD.gn#newcode73 build/toolchain/mac/BUILD.gn:73: exec_script("get_tool_mtime.py", Can you move this up above the ...
4 years, 6 months ago (2016-06-17 20:43:30 UTC) #6
Robert Sesek
https://codereview.chromium.org/2075703002/diff/20001/build/toolchain/mac/BUILD.gn File build/toolchain/mac/BUILD.gn (right): https://codereview.chromium.org/2075703002/diff/20001/build/toolchain/mac/BUILD.gn#newcode73 build/toolchain/mac/BUILD.gn:73: exec_script("get_tool_mtime.py", On 2016/06/17 20:43:30, brettw wrote: > Can you ...
4 years, 6 months ago (2016-06-17 20:53:32 UTC) #7
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/f2eb108ab1e65962104bfde275743369b0e7665b Cr-Commit-Position: refs/heads/master@{#400519}
4 years, 6 months ago (2016-06-17 22:05:22 UTC) #9
Robert Sesek
4 years, 6 months ago (2016-06-17 22:06:49 UTC) #11
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
f2eb108ab1e65962104bfde275743369b0e7665b (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698