| ... | ... | @@ -11,15 +11,14 @@ SET "MSYSTEM=%PREVMSYSTEM%" |
| 11 | 11 | |
| 12 | 12 | SET "ZIGBUILDDIR=%SRCROOT%\build" |
| 13 | 13 | SET "ZIGINSTALLDIR=%ZIGBUILDDIR%\dist" |
| 14 | | SET "ZIGPREFIXPATH=%SRCROOT%\llvm+clang-9.0.0-win64-msvc-release" |
| 14 | SET "ZIGPREFIXPATH=%SRCROOT%\llvm+clang-9.0.0-win64-msvc-mt" |
| 15 | 15 | |
| 16 | 16 | call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64 |
| 17 | 17 | |
| 18 | 18 | mkdir %ZIGBUILDDIR% |
| 19 | 19 | cd %ZIGBUILDDIR% |
| 20 | | REM Here we use MinSizeRel instead of Release to work around https://github.com/ziglang/zig/issues/3024 |
| 21 | | cmake.exe .. -Thost=x64 -G"Visual Studio 16 2019" -A x64 "-DCMAKE_INSTALL_PREFIX=%ZIGINSTALLDIR%" "-DCMAKE_PREFIX_PATH=%ZIGPREFIXPATH%" -DCMAKE_BUILD_TYPE=MinSizeRel || exit /b |
| 22 | | msbuild /maxcpucount /p:Configuration=MinSizeRel INSTALL.vcxproj || exit /b |
| 20 | cmake.exe .. -Thost=x64 -G"Visual Studio 16 2019" -A x64 "-DCMAKE_INSTALL_PREFIX=%ZIGINSTALLDIR%" "-DCMAKE_PREFIX_PATH=%ZIGPREFIXPATH%" -DCMAKE_BUILD_TYPE=Release -DZIG_FORCE_EXTERNAL_LLD=ON || exit /b |
| 21 | msbuild /maxcpucount /p:Configuration=Release INSTALL.vcxproj || exit /b |
| 23 | 22 | |
| 24 | 23 | "%ZIGINSTALLDIR%\bin\zig.exe" build test || exit /b |
| 25 | 24 | |