Variables are overrated (according to appveyor)

This commit is contained in:
Luke Street 2020-09-06 18:14:56 -04:00
parent f93400c8c2
commit 1e4a08a8f1
1 changed files with 8 additions and 11 deletions

View File

@ -35,29 +35,26 @@ install:
############################################################################
# Install a recent CMake
############################################################################
- set CMAKE_VERSION=3.16.4
- set CMAKE_URL=https://github.com/Kitware/CMake/releases/download/v%CMAKE_VERSION%/cmake-%CMAKE_VERSION%-win64-x64.zip
- set CMAKE_URL=https://github.com/Kitware/CMake/releases/download/v3.16.4/cmake-3.16.4-win64-x64.zip
- if not exist cmake.zip appveyor DownloadFile %CMAKE_URL% -FileName cmake.zip
- if not exist cmake 7z x cmake.zip -oC:\projects\deps\cmake > nul
############################################################################
# Install custom LLVM
############################################################################
- set LLVM_VERSION=10.0.1
- set LLVM_URL=https://axiodl.com/files/LLVM-%LLVM_VERSION%-win64.exe
- set LLVM_ROOT_DIR=C:\projects\deps\llvm-%LLVM_VERSION%
- if not exist "LLVM-%LLVM_VERSION%-win64.exe" appveyor DownloadFile %LLVM_URL% -FileName "LLVM-%LLVM_VERSION%-win64.exe"
- if not exist "llvm-%LLVM_VERSION%" "LLVM-%LLVM_VERSION%-win64.exe" /S "/D=%LLVM_ROOT_DIR%"
- set LLVM_URL=https://axiodl.com/files/LLVM-10.0.1-win64.exe
- if not exist LLVM-10.0.1-win64.exe appveyor DownloadFile %LLVM_URL% -FileName LLVM-10.0.1-win64.exe
- if not exist llvm-10.0.1 LLVM-10.0.1-win64.exe /S /D=C:\projects\deps\llvm-10.0.1
before_build:
# Configure ninja
- set PATH=C:\projects\deps\ninja;%PATH%
- ninja --version
# Configure cmake
- set PATH=C:\projects\deps\cmake\cmake-%CMAKE_VERSION%-win64-x64\bin;%PATH%
- set PATH=C:\projects\deps\cmake\cmake-3.16.4-win64-x64\bin;%PATH%
- cmake --version
# Configure LLVM
- set PATH=%LLVM_ROOT_DIR%\bin;%PATH%
- set PATH=C:\projects\deps\llvm-10.0.1\bin;%PATH%
- llvm-config --version
- clang-cl -v
# Configure VS
@ -69,7 +66,7 @@ before_build:
build_script:
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DLLVM_ROOT_DIR=%LLVM_ROOT_DIR% -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl -DCMAKE_LINKER=lld-link -DCMAKE_AR=llvm-ar -DCMAKE_RANLIB=llvm-ranlib -GNinja ..
- cmake -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DLLVM_ROOT_DIR=C:\projects\deps\llvm-10.0.1 -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl -DCMAKE_LINKER=lld-link -DCMAKE_AR=llvm-ar -DCMAKE_RANLIB=llvm-ranlib -GNinja ..
- ninja urde
#notifications: