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

Commit a21fcae

Browse files
committed
Add a jenkins build script.
1 parent 21492ec commit a21fcae

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

scripts/ci/run-jenkins.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash -e
2+
3+
echo "ENVIRONMENT:"
4+
env
5+
6+
#COMMON_ACVARS="ac_cv_func_fstatat=no ac_cv_func_readlinkat=no ac_cv_func_futimens=no ac_cv_func_utimensat=no"
7+
8+
LLVM_BASE_CONFIGURE_FLAGS="--enable-libcpp --enable-optimized --enable-assertions=no --disable-jit --disable-docs --disable-doxygen"
9+
#LLVM_BASE_CONFIGURE_ENVIRONMENT="$COMMON_ACVARS"
10+
11+
mkdir -p build
12+
cd build
13+
../configure --prefix=$PWD/usr --enable-targets="arm arm64" $LLVM_BASE_CONFIGURE_FLAGS CXXFLAGS="-Qunused-arguments"
14+
make -j4
15+
make install
16+
mkdir tmp-bin
17+
cp usr/bin/{llc,opt,llvm-dis} tmp-bin/
18+
rm usr/bin/*
19+
cp tmp-bin/* usr/bin/
20+
rm usr/lib/libLTO.* usr/lib/*.dylib
21+
tar cvzf llvm-osx64-$GIT_COMMIT.tar.gz usr

0 commit comments

Comments
 (0)