Skip to content

Commit 05cf917

Browse files
author
Daniel Kroening
committed
add clcache to Windows build
1 parent b6258db commit 05cf917

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

buildspec-windows.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ phases:
55
commands:
66
- choco install cyg-get -y --no-progress
77
- cyg-get bash patch bison flex make wget perl
8+
- nuget install clcache -OutputDirectory "c:\tools\cygwin\bin"
89

910
build:
1011
commands:
@@ -14,13 +15,13 @@ phases:
1415
1516
- |
1617
$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" '
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" '
1920
2021
- |
2122
$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+
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" '
2425
2526
post_build:
2627
commands:

0 commit comments

Comments
 (0)