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

Issue 2030723002: Handle case where WINDOWSSDKDIR is not set (Closed)

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

Description

Handle case where WINDOWSSDKDIR is not set If DEPOT_TOOLS_WIN_TOOLCHAIN=0 and vcvarsall.bat has not been run then WINDOWSSDKDIR will probably not be set and copying cdb\cdb.exe will fail when copy_cdb_to_output.py tries to read WINDOWSSDKDIR from environ. This change handles that case by using the default SDK location. BUG=616146 Committed: https://crrev.com/250abd283b7db0274df689e6b0dad571fd180a4f Cr-Commit-Position: refs/heads/master@{#397483}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove if/else per code-review feedback #

Total comments: 2

Patch Set 3 : Fixing indentation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -1 line) Patch
M build/win/copy_cdb_to_output.py View 1 2 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 27 (10 generated)
brucedawson
My tests show that this now works correctly without affecting cases where it previously worked. ...
4 years, 6 months ago (2016-06-01 20:45:27 UTC) #2
Ken Russell (switch to Gerrit)
Thanks Bruce for picking this up. LGTM though CC'ing scottmg in case he has concerns ...
4 years, 6 months ago (2016-06-01 21:00:12 UTC) #4
Ken Russell (switch to Gerrit)
P.S. I'm not an OWNER in this directory.
4 years, 6 months ago (2016-06-01 21:00:42 UTC) #5
scottmg
Hardcoded path isn't super, but it's not the first place we have it, and something ...
4 years, 6 months ago (2016-06-01 21:07:35 UTC) #6
scottmg
Hardcoded path isn't super, but it's not the first place we have it, and something ...
4 years, 6 months ago (2016-06-01 21:07:35 UTC) #7
brucedawson
https://codereview.chromium.org/2030723002/diff/1/build/win/copy_cdb_to_output.py File build/win/copy_cdb_to_output.py (right): https://codereview.chromium.org/2030723002/diff/1/build/win/copy_cdb_to_output.py#newcode61 build/win/copy_cdb_to_output.py:61: win_sdk_dir = os.path.normpath(os.environ['WINDOWSSDKDIR']) On 2016/06/01 21:07:35, scottmg wrote: > ...
4 years, 6 months ago (2016-06-01 22:24:07 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2030723002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2030723002/20001
4 years, 6 months ago (2016-06-01 23:08:59 UTC) #11
scottmg
https://codereview.chromium.org/2030723002/diff/20001/build/win/copy_cdb_to_output.py File build/win/copy_cdb_to_output.py (right): https://codereview.chromium.org/2030723002/diff/20001/build/win/copy_cdb_to_output.py#newcode60 build/win/copy_cdb_to_output.py:60: 'C:\\Program Files (x86)\\Windows Kits\\10')) This indent is wrong and ...
4 years, 6 months ago (2016-06-01 23:38:05 UTC) #12
brucedawson
*Now* it's perfect! And it still works, with and without DEPOT_TOOLS_WIN_TOOLCHAIN=0. https://codereview.chromium.org/2030723002/diff/20001/build/win/copy_cdb_to_output.py File build/win/copy_cdb_to_output.py (right): ...
4 years, 6 months ago (2016-06-02 00:17:11 UTC) #14
scottmg
lgtm!
4 years, 6 months ago (2016-06-02 00:22:04 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2030723002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2030723002/40001
4 years, 6 months ago (2016-06-02 00:24:06 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/239319)
4 years, 6 months ago (2016-06-02 02:23:19 UTC) #20
brucedawson
On 2016/06/02 02:23:19, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 6 months ago (2016-06-02 17:02:42 UTC) #21
scottmg
On 2016/06/02 17:02:42, brucedawson wrote: > On 2016/06/02 02:23:19, commit-bot: I haz the power wrote: ...
4 years, 6 months ago (2016-06-02 17:15:12 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2030723002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2030723002/40001
4 years, 6 months ago (2016-06-02 17:20:14 UTC) #24
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 6 months ago (2016-06-02 18:49:35 UTC) #25
commit-bot: I haz the power
4 years, 6 months ago (2016-06-02 18:52:17 UTC) #27
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/250abd283b7db0274df689e6b0dad571fd180a4f
Cr-Commit-Position: refs/heads/master@{#397483}

Powered by Google App Engine
This is Rietveld 408576698