0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2024-12-02 17:01:55 -05:00
denoland-rusty-v8/musl-build.sh
2024-10-24 13:11:04 -04:00

35 lines
684 B
Bash
Executable file

#!/bin/sh
apk add git \
gcc \
ninja \
python3 \
clang \
g++ \
pkgconfig \
glib-dev \
llvm13-dev \
binutils-gold \
sccache
ln -s /usr/bin/python3 /usr/bin/python
export V8_FROM_SOURCE="yes"
export CLANG_BASE_PATH="/usr"
export SCCACHE_DIR="./target/sccache"
export SCCACHE="/usr/bin/sccache"
export GN_ARGS="use_custom_libcxx=false use_lld=false v8_enable_backtrace=false v8_enable_debugging_features=false"
GN="$(pwd)/gn/out/gn"
export GN
# Bulid GN
if [ ! -d "./gn" ]; then
git clone https://gn.googlesource.com/gn
(
cd gn || exit
python3 build/gen.py
ninja -C out
)
fi
# Build rusty_v8
cargo build -vv