5
5
commands :
6
6
- choco install cyg-get -y --no-progress
7
7
- cyg-get bash patch bison flex make wget perl
8
+ - nuget install clcache -OutputDirectory "c:\tools" -ExcludeVersion -Version 4.1.0
8
9
9
10
build :
10
11
commands :
@@ -13,14 +14,22 @@ phases:
13
14
C:\tools\cygwin\bin\bash -c "make -C src minisat2-download DOWNLOADER=wget"
14
15
15
16
- |
16
- $env:Path = "C:\tools\cygwin\bin;$env:Path"
17
- cmd /c 'call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64 && bash -c "make -j4 -C src BUILD_ENV=MSVC" '
18
- cmd /c 'call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64 && bash -c "make -j4 -C unit all BUILD_ENV=MSVC" '
17
+ $env:Path = "C:\tools\cygwin\bin;c:\tools\clcache\clcache-4.1.0;$env:Path"
18
+ $env:CLCACHE_DIR = "C:\clcache"
19
+ cmd /c 'call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64 && bash -c "make CXX=clcache.exe -j4 -C src BUILD_ENV=MSVC" '
20
+ cmd /c 'call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64 && bash -c "make CXX=clcache.exe -j4 -C unit all BUILD_ENV=MSVC" '
19
21
20
22
- |
21
- $env:Path = "C:\tools\cygwin\bin;$env:Path"
22
- cmd /c 'call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64 && bash -c "make -j4 -C jbmc/src setup-submodules" && bash -c "make -j4 -C jbmc/src BUILD_ENV=MSVC" '
23
- cmd /c 'call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64 && bash -c "make -j4 -C jbmc/unit all BUILD_ENV=MSVC" '
23
+ $env:Path = "C:\tools\cygwin\bin;c:\tools\clcache\clcache-4.1.0;$env:Path"
24
+ $env:CLCACHE_DIR = "C:\clcache"
25
+ cmd /c 'call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64 && bash -c "make -j4 -C jbmc/src setup-submodules" && bash -c "make CXX=clcache.exe -j4 -C jbmc/src BUILD_ENV=MSVC" '
26
+ cmd /c 'call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64 && bash -c "make CXX=clcache.exe -j4 -C jbmc/unit all BUILD_ENV=MSVC" '
27
+
28
+ - |
29
+ # display cache stats
30
+ $env:Path = "C:\tools\cygwin\bin;c:\tools\clcache\clcache-4.1.0;$env:Path"
31
+ $env:CLCACHE_DIR = "C:\clcache"
32
+ cmd /c 'clcache -s'
24
33
25
34
post_build :
26
35
commands :
@@ -72,3 +81,4 @@ artifacts:
72
81
73
82
cache :
74
83
paths :
84
+ - ' c:\clcache'
0 commit comments