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

Issue 1827663002: Strip trailing backslashes from vcvarsall results (Closed)

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

Description

Strip trailing backslashes from vcvarsall results When building with DEPOT_TOOLS_WIN_TOOLCHAIN=0 the vs_toolchain.py script uses environment variables set up by vcvarsall.bat, such as WINDOWSSDKDIR. The default value of this with VS 2015 is WindowsSdkDir=C:\Program Files (x86)\Windows Kits\10\ - note the trailing slash. When ninja runs "build\vs_toolchain.py get_toolchain_dir" it translates this to: sdk_path = "C:\Program Files (x86)\Windows Kits\10\" The trailing slash in front of the quote confuses the gn parser. This change strips those trailing slashes. For more details see the gn docs: https://chromium.googlesource.com/chromium/src/+/master/tools/gn/docs/language.md#Strings BUG=593154 Committed: https://crrev.com/12bbca48cda56b2a10a68f8f69bb90906189c4bf Cr-Commit-Position: refs/heads/master@{#382752}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -3 lines) Patch
M build/vs_toolchain.py View 2 chunks +9 lines, -3 lines 0 comments Download

Messages

Total messages: 16 (6 generated)
brucedawson
This fixes a gn problem with DEPOT_TOOLS_WIN_TOOLCHAIN=0. I'm mostly adding dpranke@ in case it would ...
4 years, 9 months ago (2016-03-22 23:48:13 UTC) #2
Dirk Pranke
I *think* this is probably the right thing to do, because GN wants to see ...
4 years, 9 months ago (2016-03-22 23:58:15 UTC) #4
Dirk Pranke
On 2016/03/22 23:58:15, Dirk Pranke wrote: > I *think* this is probably the right thing ...
4 years, 9 months ago (2016-03-22 23:59:30 UTC) #5
brucedawson
After thinking about it some more I think that the behavior is consistent with Python ...
4 years, 9 months ago (2016-03-23 00:03:22 UTC) #6
Dirk Pranke
I double-checked w/ Brett and he reminded me that we wanted to make it "easy" ...
4 years, 9 months ago (2016-03-23 00:13:11 UTC) #7
brucedawson
> so, still lgtm. Thanks for the reference. I updated the change description to incorporate ...
4 years, 9 months ago (2016-03-23 00:17:41 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1827663002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1827663002/1
4 years, 9 months ago (2016-03-23 00:18:14 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 9 months ago (2016-03-23 00:58:17 UTC) #13
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/12bbca48cda56b2a10a68f8f69bb90906189c4bf Cr-Commit-Position: refs/heads/master@{#382752}
4 years, 9 months ago (2016-03-23 00:59:38 UTC) #15
brettw
4 years, 9 months ago (2016-03-23 16:00:12 UTC) #16
Message was sent while issue was closed.
The "right way" would be to use build/gn_helpers.py: ToGNString() for output.
This utility is designed for GN interop so everybody can get the parsing and
formatting correct.

Powered by Google App Engine
This is Rietveld 408576698