Skip to content
This repository has been archived by the owner on Dec 20, 2019. It is now read-only.

Commit

Permalink
Add a jenkins build script.
Browse files Browse the repository at this point in the history
  • Loading branch information
vargaz committed Dec 4, 2017
1 parent 21492ec commit a21fcae
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions scripts/ci/run-jenkins.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash -e

echo "ENVIRONMENT:"
env

#COMMON_ACVARS="ac_cv_func_fstatat=no ac_cv_func_readlinkat=no ac_cv_func_futimens=no ac_cv_func_utimensat=no"

LLVM_BASE_CONFIGURE_FLAGS="--enable-libcpp --enable-optimized --enable-assertions=no --disable-jit --disable-docs --disable-doxygen"
#LLVM_BASE_CONFIGURE_ENVIRONMENT="$COMMON_ACVARS"

mkdir -p build
cd build
../configure --prefix=$PWD/usr --enable-targets="arm arm64" $LLVM_BASE_CONFIGURE_FLAGS CXXFLAGS="-Qunused-arguments"
make -j4
make install
mkdir tmp-bin
cp usr/bin/{llc,opt,llvm-dis} tmp-bin/
rm usr/bin/*
cp tmp-bin/* usr/bin/
rm usr/lib/libLTO.* usr/lib/*.dylib
tar cvzf llvm-osx64-$GIT_COMMIT.tar.gz usr

0 comments on commit a21fcae

Please sign in to comment.