Skip to content

Commit 45fc621

Browse files
Add CI compilation phase with clang 3.8
This uses CodeBuild to run in parallel
1 parent ba23989 commit 45fc621

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

buildspec-linux-clang-3.8.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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+
- sed -i 's#/archive.ubuntu.com#/us-east-1.ec2.archive.ubuntu.com#g' /etc/apt/sources.list
12+
- apt-get update -y
13+
- apt-get install -y clang-3.8 flex bison make git libwww-perl patch ccache libc6-dev-i386 jq openjdk-8-jdk maven
14+
build:
15+
commands:
16+
- echo Build started on `date`
17+
- git submodule update --init --recursive
18+
- make -C src minisat2-download
19+
- make -C jbmc/src setup-submodules
20+
- make -C src CXX='ccache /usr/bin/clang++-3.8' CXX_FLAGS='-Qunused-arguments -DDEBUG'
21+
- make -C jbmc/src CXX='ccache /usr/bin/clang++-3.8' CXX_FLAGS='-Qunused-arguments -DDEBUG'
22+
post_build:
23+
commands:
24+
- echo Build completed on `date`
25+
cache:
26+
paths:
27+
- '/var/cache/apt/**/*'
28+
- '/var/lib/apt/lists/**/*'
29+
- '/root/.ccache/**/*'

0 commit comments

Comments
 (0)