1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-25 11:08:02 +02:00

Merge pull request #183 from CompaqDisc/master

Fix build script
This commit is contained in:
Brian Fiete 2020-05-01 16:35:08 -07:00 committed by GitHub
commit c1efe630db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,7 +2,9 @@
echo Starting build.sh echo Starting build.sh
PATH=/usr/local/bin:$PATH:$HOME/bin PATH=/usr/local/bin:$PATH:$HOME/bin
cd "$(dirname "$0")" SCRIPT="$(realpath "$0")"
SCRIPTPATH="$(dirname "$SCRIPT")"
cd $SCRIPTPATH
# exit when any command fails # exit when any command fails
set -e set -e
@ -14,14 +16,14 @@ if [ ! -f ../BeefySysLib/third_party/libffi/Makefile ]; then
cd ../BeefySysLib/third_party/libffi cd ../BeefySysLib/third_party/libffi
./configure ./configure
make make
cd "$(dirname "$0")" cd $SCRIPTPATH
fi fi
if [ ! -d ../extern/llvm_linux_8_0_0 ]; then if [ ! -d ../extern/llvm_linux_8_0_0 ]; then
echo Building LLVM... echo Building LLVM...
cd ../extern cd ../extern
./llvm_build.sh ./llvm_build.sh
cd "$(dirname "$0")" cd $SCRIPTPATH
fi fi
### LIBS ### ### LIBS ###