diff options
| author | crupest <crupest@outlook.com> | 2021-08-10 01:22:31 +0800 |
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2021-08-10 01:22:31 +0800 |
| commit | 9aa99ad73489408245c6e247c352bfa979d089f9 (patch) | |
| tree | 864ec330cba4b0ec66c1634091ccb08cc362aa9a /tools | |
| parent | 775625d3e0f26fce5b0bcb72a1d64965176fcf7e (diff) | |
| download | cru-9aa99ad73489408245c6e247c352bfa979d089f9.tar.gz cru-9aa99ad73489408245c6e247c352bfa979d089f9.tar.bz2 cru-9aa99ad73489408245c6e247c352bfa979d089f9.zip | |
...
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/Use-VC.ps1 | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/Use-VC.ps1 b/tools/Use-VC.ps1 index 300296ec..a4b7f348 100644 --- a/tools/Use-VC.ps1 +++ b/tools/Use-VC.ps1 @@ -12,9 +12,7 @@ function Use-VC { $p = 'amd64' } - $vs = $(vswhere.exe -format value -property installationPath) - - cmd /c "$vs\VC\Auxiliary\Build\vcvars64.bat $p & set" | + cmd /c "$(vswhere.exe -format value -property installationPath)\VC\Auxiliary\Build\vcvars64.bat $p & set" | ForEach-Object { if ($_ -match '=') { $v = $_ -split '=' |
