Another try at making the Windows build work...
@@ -50,29 +50,31 @@ jobs:
- script: |
- echo Deleting stupid link.exe from the path...
- del "C:\Program Files\Git\usr\bin\link.exe"
- echo Checking that we're calling the correct link.exe
- where link.exe
echo Creating build directory...
mkdir build
cd build
+ echo Importing visual studio environment variables...
+ "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvars64.bat" x64
+ echo Checking that we're calling the correct link.exe
+ where link.exe
echo Running cmake...
cmake .. -G Ninja -DTESTS=ON -DCMAKE_C_COMPILER="c:/Program Files/LLVM/bin/clang-cl.exe" -DCMAKE_CXX_COMPILER="c:/Program Files/LLVM/bin/clang-cl.exe"
echo CMake completed.
- failOnStderr: true
+ failOnStderr: false
displayName: 'CMake'
- script: |
cd build
dir
+ echo Importing visual studio environment variables...
+ "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvars64.bat" x64
set CCC_OVERRIDE_OPTIONS=x-TC x-TP x/TC x/TP
echo Running ninja...
ninja
echo Ninja completed.
- failOnStderr: true
+ failOnStderr: false
displayName: 'Compile'
- script: |
