Skip to content

Commit cd4a163

Browse files
author
Daniel Kroening
committed
AWS codebuild windows: set clcache base directory
1 parent 1ba928c commit cd4a163

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

buildspec-windows.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,22 @@ phases:
1616
- |
1717
$env:Path = "C:\tools\cygwin\bin;c:\tools\clcache\clcache-4.1.0;$env:Path"
1818
$env:CLCACHE_DIR = "C:\clcache"
19+
$env:CLCACHE_BASEDIR = (Get-Item -Path ".\").FullName
1920
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" '
2021
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" '
2122
2223
- |
2324
$env:Path = "C:\tools\cygwin\bin;c:\tools\clcache\clcache-4.1.0;$env:Path"
2425
$env:CLCACHE_DIR = "C:\clcache"
26+
$env:CLCACHE_BASEDIR = (Get-Item -Path ".\").FullName
2527
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" '
2628
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" '
2729
2830
- |
2931
# display cache stats
3032
$env:Path = "C:\tools\cygwin\bin;c:\tools\clcache\clcache-4.1.0;$env:Path"
3133
$env:CLCACHE_DIR = "C:\clcache"
34+
$env:CLCACHE_BASEDIR = (Get-Item -Path ".\").FullName
3235
cmd /c 'clcache -s'
3336
3437
post_build:

0 commit comments

Comments
 (0)