Skip to content

Commit 813d9af

Browse files
author
Daniel Kroening
committed
add clcache to Windows build
1 parent c9f3b47 commit 813d9af

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

buildspec-windows.yml

+9
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ phases:
66
- choco install cyg-get -y --no-progress
77
- cyg-get bash patch bison flex make wget perl
88
- nuget install clcache -OutputDirectory "c:\tools" -ExcludeVersion
9+
- cmd /c 'echo %HOME%'
910

1011
build:
1112
commands:
@@ -15,14 +16,21 @@ phases:
1516
1617
- |
1718
$env:Path = "C:\tools\cygwin\bin;c:\tools\clcache\clcache-4.1.0;$env:Path"
19+
$env:CLCACHE_DIR = "C:\clcache"
1820
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" '
1921
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" '
2022
2123
- |
2224
$env:Path = "C:\tools\cygwin\bin;c:\tools\clcache\clcache-4.1.0;$env:Path"
25+
$env:CLCACHE_DIR = "C:\clcache"
2326
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" '
2427
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" '
2528
29+
- |
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'
33+
2634
post_build:
2735
commands:
2836
- |
@@ -73,3 +81,4 @@ artifacts:
7381

7482
cache:
7583
paths:
84+
- 'c:\clcache'

0 commit comments

Comments
 (0)