Skip to content

Commit 3f9e1b0

Browse files
author
Daniel Kroening
authored
Merge pull request #4739 from tautschnig/revert-msbuild
Revert "Test build of vcxproj files in CI"
2 parents 24212bf + 31f65c3 commit 3f9e1b0

File tree

2 files changed

+39
-8
lines changed

2 files changed

+39
-8
lines changed

buildspec-msbuild.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
version: 0.2
2+
3+
env:
4+
variables:
5+
# CodeBuild console doesn't display color codes correctly
6+
TESTPL_COLOR_OUTPUT: 0
7+
8+
phases:
9+
install:
10+
commands:
11+
- choco install cyg-get -y --no-progress
12+
- cyg-get bash patch bison flex make wget perl jq
13+
- nuget install clcache -OutputDirectory "c:\tools" -ExcludeVersion -Version 4.1.0
14+
15+
build:
16+
commands:
17+
- |
18+
$env:Path = "C:\tools\cygwin\bin;$env:Path"
19+
bash -c "make -C src minisat2-download DOWNLOADER=wget"
20+
21+
- |
22+
$env:Path = "C:\tools\cygwin\bin;c:\tools\clcache\clcache-4.1.0;$env:Path"
23+
$env:CLCACHE_DIR = "C:\clcache"
24+
$env:CLCACHE_BASEDIR = (Get-Item -Path ".\").FullName
25+
cmd /c 'bash -c "cd scripts ; ./generate_vcxproj"'
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 src BUILD_ENV=MSVC generated_files"'
27+
$env:Path = "C:\Program Files (x86)\MSBuild\14.0\Bin;$env:Path"
28+
msbuild /p:CLToolExe=clcache.exe /m:4 cbmc.vcxproj
29+
30+
- |
31+
# display cache stats
32+
$env:Path = "C:\tools\cygwin\bin;c:\tools\clcache\clcache-4.1.0;$env:Path"
33+
$env:CLCACHE_DIR = "C:\clcache"
34+
$env:CLCACHE_BASEDIR = (Get-Item -Path ".\").FullName
35+
cmd /c 'clcache -s'
36+
37+
cache:
38+
paths:
39+
- 'c:\clcache\**\*'

buildspec-windows.yml

-8
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,6 @@ phases:
3232
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" '
3333
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" '
3434
35-
- |
36-
$env:Path = "C:\tools\cygwin\bin;c:\tools\clcache\clcache-4.1.0;$env:Path"
37-
$env:CLCACHE_DIR = "C:\clcache"
38-
$env:CLCACHE_BASEDIR = (Get-Item -Path ".\").FullName
39-
cmd /c 'bash -c "cd scripts ; ./generate_vcxproj"'
40-
$env:Path = "C:\Program Files (x86)\MSBuild\14.0\Bin;$env:Path"
41-
msbuild /p:CLToolExe=clcache.exe /m:4 cbmc.vcxproj
42-
4335
- |
4436
# display cache stats
4537
$env:Path = "C:\tools\cygwin\bin;c:\tools\clcache\clcache-4.1.0;$env:Path"

0 commit comments

Comments
 (0)