summaryrefslogtreecommitdiffstats
path: root/.gitlab/ci/vcvarsall.ps1
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab/ci/vcvarsall.ps1')
-rwxr-xr-x.gitlab/ci/vcvarsall.ps19
1 files changed, 9 insertions, 0 deletions
diff --git a/.gitlab/ci/vcvarsall.ps1 b/.gitlab/ci/vcvarsall.ps1
new file mode 100755
index 0000000..a48b511
--- /dev/null
+++ b/.gitlab/ci/vcvarsall.ps1
@@ -0,0 +1,9 @@
+$erroractionpreference = "stop"
+
+cmd /c "`"$env:VCVARSALL`" $VCVARSPLATFORM & set" |
+foreach {
+ if ($_ -match "=") {
+ $v = $_.split("=")
+ [Environment]::SetEnvironmentVariable($v[0], $v[1])
+ }
+}