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\cygwin\bin"
8
+ - nuget install clcache -OutputDirectory "c:\tools" -ExcludeVersion
9
9
10
10
build :
11
11
commands :
@@ -14,14 +14,22 @@ phases:
14
14
C:\tools\cygwin\bin\bash -c "make -C src minisat2-download DOWNLOADER=wget"
15
15
16
16
- |
17
- $env:Path = "C:\tools\cygwin\bin;$env:Path"
18
- cmd /c 'call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64 && bash -c "make CXX=clcache -j4 -C src BUILD_ENV=MSVC" '
19
- cmd /c 'call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64 && bash -c "make CXX=clcache -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" '
20
21
21
22
- |
22
- $env:Path = "C:\tools\cygwin\bin;$env:Path"
23
- 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 -j4 -C jbmc/src BUILD_ENV=MSVC" '
24
- cmd /c 'call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64 && bash -c "make CXX=clcache -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'
25
33
26
34
post_build :
27
35
commands :
@@ -73,3 +81,4 @@ artifacts:
73
81
74
82
cache :
75
83
paths :
84
+ - ' c:\clcache'
0 commit comments