diff options
| author | Roy Ivy III <[email protected]> | 2018-10-13 01:23:26 -0500 |
|---|---|---|
| committer | Roy Ivy III <[email protected]> | 2018-10-14 16:24:36 -0500 |
| commit | fe0c464cfdf0498bf6df69a8965931255e94884b (patch) | |
| tree | a00de4c50a49ab590a1115132e7ae70b1d266c58 /xmake/plugins/lua/scripts | |
| parent | 65f989753d3e3f64dc61bcb37e3725423297bfa7 (diff) | |
fix detection strategy for MSVC/VS2017+
* fixes the MSVC/VS 2017 detection problem discussed within <https://github.com/tboox/xmake/issues/225>
.# Discussion
MSVC/VS versions >= 15.0 will no longer be setting registry entries for tool location
purposes. But `vswhere` (included with MSVC/VS versions >= 15.2, and placed in a
guaranteed location) can instead be used to find the needed path.
`os.runv(...)` is used as the tool to gather `vswhere` output instead of `($shell ...)`
in order to avoid some `($shell ...)` limitations. Commands containing white space and/or
special characters (eg, '[', ')') are difficult or impossible to pass through the current
`($shell ...)` implementation, causing application exceptions. Both white space and the
noted special characters are needed to construct the required `vswhere` command.
ref: <https://github.com/Microsoft/vswhere/blob/master/README.md> @@ <https://archive.is/mEmdu>
Diffstat (limited to 'xmake/plugins/lua/scripts')
0 files changed, 0 insertions, 0 deletions
