mirror of
https://github.com/danog/gllvm.git
synced 2024-11-27 03:34:49 +01:00
31 lines
417 B
Bash
Executable File
31 lines
417 B
Bash
Executable File
#!/bin/bash -x
|
|
# Make sure we exit if there is a failure
|
|
set -e
|
|
|
|
|
|
export PATH=/usr/lib/llvm-3.8/bin:${PATH}
|
|
export WLLVM_OUTPUT_LEVEL=WARNING
|
|
|
|
|
|
git clone https://github.com/SRI-CSL/musllvm.git musllvm
|
|
|
|
cd musllvm
|
|
|
|
WLLVM_CONFIGURE_ONLY=1 CC=gclang ./configure --target=LLVM --build=LLVM
|
|
|
|
make
|
|
|
|
exit $?
|
|
|
|
|
|
get-bc -b ./lib/libc.a
|
|
|
|
if [ -s "./lib/libc.a.bc" ]
|
|
then
|
|
echo "libc.a.bc exists."
|
|
else
|
|
exit 1
|
|
fi
|
|
|
|
exit 0
|