forked from denoland/rusty_v8
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add x86_64-unknown-linux-musl library release
This adds x86_64-unknown-linux-musl as a new supported target for the pre-built rusty_v8 library releases, which should avoid multiple downstream consumers having to build this themselves. This target is useful when trying to build statically-compiled executables, which seems like a good thing to support for the purpose of using deno_core as an embedded JavaScript runtime. Closes denoland#49.
- Loading branch information
Showing
2 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/sh | ||
|
||
apk add git | ||
apk add gcc | ||
apk add ninja | ||
apk add python3 | ||
apk add clang | ||
apk add g++ | ||
apk add pkgconfig | ||
apk add glib-dev | ||
apk add llvm13-dev | ||
apk add binutils-gold | ||
ln -s /usr/bin/python3 /usr/bin/python | ||
|
||
export V8_FROM_SOURCE=yes | ||
GN="$(pwd)/gn/out/gn" | ||
export GN | ||
export CLANG_BASE_PATH=/usr | ||
export GN_ARGS='use_custom_libcxx=false use_lld=false v8_enable_backtrace=false v8_enable_debugging_features=false' | ||
|
||
# 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 |