aboutsummaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-11-03 18:58:54 -0500
committerAndrew Kelley <andrew@ziglang.org>2019-11-03 18:58:54 -0500
commit1a820067d02dd068f89db219d47468ad85b67cf5 (patch)
tree502a6bac4b18cad7e90685e036892c0cf89b9261 /ci
parent96984e3033a084eac887a02e7c86d3b58c75b7f0 (diff)
downloadzig-1a820067d02dd068f89db219d47468ad85b67cf5.tar.gz
zig-1a820067d02dd068f89db219d47468ad85b67cf5.zip
ci: hail mary running git.exe in the windows bat file
Diffstat (limited to 'ci')
-rw-r--r--ci/azure/windows_script.bat4
1 files changed, 4 insertions, 0 deletions
diff --git a/ci/azure/windows_script.bat b/ci/azure/windows_script.bat
index d3437e885b..db27c47b0c 100644
--- a/ci/azure/windows_script.bat
+++ b/ci/azure/windows_script.bat
@@ -15,6 +15,10 @@ SET "ZIGPREFIXPATH=%SRCROOT%\llvm+clang-9.0.0-win64-msvc-mt"
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
+REM Make the `zig version` number consistent.
+REM This will affect the cmake command below.
+git.exe config core.abbrev 9
+
mkdir %ZIGBUILDDIR%
cd %ZIGBUILDDIR%
cmake.exe .. -Thost=x64 -G"Visual Studio 16 2019" -A x64 "-DCMAKE_INSTALL_PREFIX=%ZIGINSTALLDIR%" "-DCMAKE_PREFIX_PATH=%ZIGPREFIXPATH%" -DCMAKE_BUILD_TYPE=Release || exit /b