mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-14 07:51:01 +00:00
dfa89e227a
* Update plume-front build to use a shell script that adds the necessary dependencies on arm (x86 left untouched inside the script) * Fix cleanup portion of plume-front.sh * Break wasm dependencies for arm out so they are run before the main builds to improve layer caching on subsequent docker builds * Fixup dockerfile so wasm-deps can run properly and with fewer assumptions * Move new scripts to script/ folder * Remove saving of path as it's not actually not necessary * Add rust-toolchain to early copy so it pulls the right rust release (addresses #400)
33 lines
1.1 KiB
Bash
33 lines
1.1 KiB
Bash
#!/bin/bash
|
|
|
|
ARCH=`arch`
|
|
|
|
if [ "$ARCH" == "aarch64" -o "$ARCH" == "armv7l" ] ; then
|
|
apt-get install -y --no-install-recommends build-essential subversion ninja-build cmake
|
|
mkdir -p /scratch/src
|
|
cd /scratch/src
|
|
svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm
|
|
cd /scratch/src/llvm/tools
|
|
svn co http://llvm.org/svn/llvm-project/lld/trunk lld
|
|
#svn co http://llvm.org/svn/llvm-project/cfe/trunk clang
|
|
#svn co http://llvm.org/svn/llvm-project/clang-tools-extra/trunk extra
|
|
mkdir -p /scratch/build/arm
|
|
cd /scratch/build/arm
|
|
if [ "$ARCH" == "aarch64" ] ; then
|
|
cmake -G Ninja /scratch/src/llvm \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=/opt/local/llvm \
|
|
-DLLVM_TARGETS_TO_BUILD="AArch64" \
|
|
-DLLVM_TARGET_ARCH="AArch64"
|
|
else
|
|
cmake -G Ninja /scratch/src/llvm \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=/opt/local/llvm \
|
|
-DLLVM_TARGETS_TO_BUILD="ARM" \
|
|
-DLLVM_TARGET_ARCH="ARM"
|
|
fi
|
|
ninja lld
|
|
ninja install-lld
|
|
cd ~
|
|
rm -rf /scratch
|
|
fi
|