docker build fixes
This commit is contained in:
parent
475271ca56
commit
e2c9e8000a
@ -13,11 +13,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
libssl-dev \
|
libssl-dev \
|
||||||
clang
|
clang
|
||||||
|
|
||||||
|
RUN ln -s /usr/bin/python3 /usr/bin/python & \
|
||||||
|
ln -s /usr/bin/pip3 /usr/bin/pip
|
||||||
|
|
||||||
WORKDIR /scratch
|
WORKDIR /scratch
|
||||||
COPY script/wasm-deps.sh .
|
COPY script/wasm-deps.sh .
|
||||||
RUN chmod a+x ./wasm-deps.sh && sleep 1 && ./wasm-deps.sh
|
RUN chmod a+x ./wasm-deps.sh && sleep 1 && ./wasm-deps.sh
|
||||||
RUN ln -s /usr/bin/python3 /usr/bin/python & \
|
|
||||||
ln -s /usr/bin/pip3 /usr/bin/pip
|
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
nightly-2024-07-19
|
nightly-2024-08-30
|
||||||
|
@ -21,29 +21,5 @@ EOF
|
|||||||
echo "Detected arch: $ARCH"
|
echo "Detected arch: $ARCH"
|
||||||
|
|
||||||
if [ $ARCH == "aarch64" -o $ARCH == "armv71" ] ; then
|
if [ $ARCH == "aarch64" -o $ARCH == "armv71" ] ; then
|
||||||
apt-get install -y --no-install-recommends build-essential subversion ninja-build cmake
|
apt-get install -y --no-install-recommends build-essential cmake llvm lld
|
||||||
mkdir -p /scratch/src
|
|
||||||
cd /scratch/src
|
|
||||||
svn co http://llvm.org/svn/llvm-project/llvm/tags/RELEASE_900/final/ llvm
|
|
||||||
cd /scratch/src/llvm/tools
|
|
||||||
svn co http://llvm.org/svn/llvm-project/lld/tags/RELEASE_900/final/ lld
|
|
||||||
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
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user