aboutsummaryrefslogtreecommitdiff
path: root/tools/Use-VC.ps1
diff options
context:
space:
mode:
Diffstat (limited to 'tools/Use-VC.ps1')
-rw-r--r--tools/Use-VC.ps124
1 files changed, 0 insertions, 24 deletions
diff --git a/tools/Use-VC.ps1 b/tools/Use-VC.ps1
deleted file mode 100644
index ad3dbcba..00000000
--- a/tools/Use-VC.ps1
+++ /dev/null
@@ -1,24 +0,0 @@
-function Use-VC {
- param(
- [Parameter()]
- [ValidateSet('x64', 'x86')]
- $Arch = 'x64'
- )
-
- if ($Arch -eq 'x86') {
- $p = 'x86';
- }
- else {
- $p = 'amd64'
- }
-
- cmd /c "`"$(vswhere.exe -format value -property installationPath)\VC\Auxiliary\Build\vcvars64.bat`" $p & set" |
- ForEach-Object {
- if ($_ -match '=') {
- $v = $_ -split '='
- Set-Item -Force -Path "ENV:\$($v[0])" -Value "$($v[1])"
- }
- }
- Pop-Location
- Write-Host "Visual Studio Command Prompt variables set." -ForegroundColor Yellow
-}