gllvm/.travis/test.sh

31 lines
417 B
Bash
Raw Normal View History

#!/bin/bash -x
# Make sure we exit if there is a failure
set -e
2017-06-29 21:38:04 +02:00
export PATH=/usr/lib/llvm-3.8/bin:${PATH}
export WLLVM_OUTPUT_LEVEL=WARNING
git clone https://github.com/SRI-CSL/musllvm.git musllvm
2017-07-10 22:01:21 +02:00
cd musllvm
2017-07-10 22:01:21 +02:00
WLLVM_CONFIGURE_ONLY=1 CC=gclang ./configure --target=LLVM --build=LLVM
2017-07-10 22:01:21 +02:00
make
2017-07-10 22:01:21 +02:00
exit $?
2017-07-10 22:01:21 +02:00
get-bc -b ./lib/libc.a
if [ -s "./lib/libc.a.bc" ]
then
echo "libc.a.bc exists."
else
exit 1
fi
2017-07-10 22:01:21 +02:00
exit 0