Skip to content

Commit 13d064d

Browse files
committed
Adding musllvm to the travis tests coz it always picks up failures first, might remove apache ....
1 parent b5de01c commit 13d064d

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,7 @@ script:
3737
- ${WLLVM_HOME}/.travis/apache_clang.sh
3838
# build apache with gcc and dragonegg
3939
- ${WLLVM_HOME}/.travis/apache_dragonegg.sh
40+
# build musllvm with clang
41+
- ${WLLVM_HOME}/.travis/musllvm.sh
4042

4143

.travis/musllvm.sh

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/bash -x
2+
# Make sure we exit if there is a failure
3+
set -e
4+
5+
6+
export PATH=/usr/lib/llvm-3.5/bin:${PATH}
7+
export LLVM_COMPILER=clang
8+
export WLLVM_OUTPUT=WARNING
9+
10+
wllvm-sanity-checker
11+
12+
13+
git clone https://github.com/SRI-CSL/musllvm.git .
14+
cd musllvm
15+
WLLVM_CONFIGURE_ONLY=1 CC=wllvm ./configure --target=LLVM --build=LLVM
16+
make
17+
extract-bc --bitcode ./lib/libc.a
18+
19+
if [ -s "./lib/libc.a.bc" ]
20+
then
21+
echo "libc.a.bc."
22+
else
23+
exit 1
24+
fi
25+
26+
27+
28+
29+
30+

0 commit comments

Comments
 (0)