Skip to content

Commit c31cd12

Browse files
Add CI compilation phase with clang 3.8
This uses CodeBuild to run in parallel
1 parent abd2628 commit c31cd12

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+
runtime-versions:
11+
java: openjdk8
12+
commands:
13+
- sed -i 's#/archive.ubuntu.com#/us-east-1.ec2.archive.ubuntu.com#g' /etc/apt/sources.list
14+
- apt-get update -y
15+
- apt-get install -y clang-3.8 flex bison make git libwww-perl patch ccache libc6-dev-i386 jq
16+
build:
17+
commands:
18+
- echo Build started on `date`
19+
- git submodule update --init --recursive
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)