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

Issue 2276513002: clang/win: Support spaces in Visual Studio directory name (Closed)

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

Description

clang/win: Support spaces in Visual Studio directory name The hermetic toolchain in depot_tools usually doesn't contain spaces, but system MSVC usually does ("Program Files"). Escape spaces once for the shell, and use gn_helpers to escape a second time for gn, instead of asserting that no " is in the path -- that's no longer true since the first level of quoting adds some. Also filter out empty include directories, since -msvc always combines with what's after it. BUG=640000 R=hans@chromium.org, scottmg@chromium.org Committed: https://chromium.googlesource.com/chromium/src/+/42bff43d05a5272b3e697e52801c266c04b59bc8

Patch Set 1 #

Total comments: 2

Patch Set 2 : also filter empty #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -6 lines) Patch
M build/toolchain/win/setup_toolchain.py View 1 3 chunks +7 lines, -6 lines 0 comments Download

Messages

Total messages: 17 (9 generated)
Nico
I don't have a system install of 2015, so I only tested that this doesn't ...
4 years, 4 months ago (2016-08-23 14:48:18 UTC) #4
scottmg
Ah, I was wondering why it's a clang-only problem, but makes sense that it's only ...
4 years, 4 months ago (2016-08-23 15:13:21 UTC) #5
hans
On 2016/08/23 14:48:18, Nico wrote: > I don't have a system install of 2015, so ...
4 years, 4 months ago (2016-08-23 15:16:54 UTC) #7
Nico
https://codereview.chromium.org/2276513002/diff/1/build/toolchain/win/setup_toolchain.py File build/toolchain/win/setup_toolchain.py (right): https://codereview.chromium.org/2276513002/diff/1/build/toolchain/win/setup_toolchain.py#newcode210 build/toolchain/win/setup_toolchain.py:210: include = [include_prefix + p for p in env['INCLUDE'].split(';')] ...
4 years, 4 months ago (2016-08-23 15:23:32 UTC) #9
hans
On 2016/08/23 15:16:54, hans wrote: > On 2016/08/23 14:48:18, Nico wrote: > > I don't ...
4 years, 4 months ago (2016-08-23 15:23:40 UTC) #11
hans
The new patch version works beautifully. lgtm
4 years, 4 months ago (2016-08-23 15:27:29 UTC) #13
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/42bff43d05a5272b3e697e52801c266c04b59bc8 Cr-Commit-Position: refs/heads/master@{#413742}
4 years, 4 months ago (2016-08-23 15:35:19 UTC) #15
Nico
4 years, 4 months ago (2016-08-23 15:36:13 UTC) #17
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
42bff43d05a5272b3e697e52801c266c04b59bc8 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698