[appveyor] enable clcache

This commit is contained in:
xoviat 2017-10-31 16:15:16 -05:00 committed by GitHub
parent ab87ee6b48
commit f61b7b4b21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -23,6 +23,9 @@ skip_commits:
# Add [av skip] to commit messages
message: /\[av skip\]/
cache:
- '%USERPROFILE%\clcache'
environment:
matrix:
- COMPILER: clang-cl
@ -39,8 +42,11 @@ install:
before_build:
- echo Running cmake...
- cd c:\projects\OpenBLAS
- ps: If ($env:COMPILER -eq "clang-cl") { $env:PATH = "C:\Python36-x64;C:\Python36-x64\Scripts;$env:PATH;" }
- ps: If ($env:COMPILER -eq "clang-cl") { $env:CLCACHE_CL = "clang-cl" }
- ps: If ($env:COMPILER -eq "clang-cl") { pip install git+https://github.com/frerich/clcache.git }
- if [%COMPILER%]==[cl] cmake -G "Visual Studio 12 Win64" .
- if [%COMPILER%]==[clang-cl] cmake -G "Ninja" -DCMAKE_CXX_COMPILER=clang-cl -DCMAKE_C_COMPILER=clang-cl .
- if [%COMPILER%]==[clang-cl] cmake -G "Ninja" -DCMAKE_CXX_COMPILER=clcache -DCMAKE_C_COMPILER=clcache .
- if [%DYNAMIC_ARCH%]==[ON] cmake -DDYNAMIC_ARCH=ON .
build_script: