-
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.
- Loading branch information
1 parent
ad9ba3e
commit 82f41e3
Showing
6 changed files
with
134 additions
and
16 deletions.
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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
# `node-static` | ||
|
||
Highly opinionated x86_64-linux nodejs build, fully statically linked, | ||
with increased V8 wasm limits, pointer compression and mimalloc. | ||
Should be fast when it works, but it doesn't work with native addons, | ||
so don't use it in your project unless you know what you're doing. | ||
Highly opinionated nodejs build, fully statically linked with | ||
musl/mimalloc on linux, with increased V8 wasm limits. Don't use it in | ||
your own project unless you know what you're doing. |
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,37 @@ | ||
#!/bin/sh | ||
|
||
set -eu | ||
|
||
node_ver=v23.0.0 | ||
|
||
apk add --no-interactive \ | ||
base-cross-aarch64 \ | ||
bsdtar \ | ||
chimerautils-extra \ | ||
curl \ | ||
gmake \ | ||
libatomic-chimera-cross-aarch64-static \ | ||
libatomic-chimera-devel-static \ | ||
libcxx-cross-aarch64-static \ | ||
libcxx-devel-static \ | ||
libcxxabi-cross-aarch64-static \ | ||
libcxxabi-devel-static \ | ||
libunwind-cross-aarch64-static \ | ||
libunwind-devel-static \ | ||
linux-headers \ | ||
linux-headers-cross-aarch64 \ | ||
musl-cross-aarch64-static \ | ||
musl-devel-static \ | ||
python | ||
|
||
cd "$(mktemp -d)" | ||
|
||
curl -f -L --retry 5 https://nodejs.org/dist/$node_ver/node-$node_ver.tar.xz | tar xJ --strip-components=1 | ||
patch -p1 -i /workspace/bump-v8-wasm-limits.diff | ||
patch -p1 -i /workspace/use-etc-ssl-certs.diff | ||
|
||
CC=aarch64-chimera-linux-musl-clang CXX=aarch64-chimera-linux-musl-clang++ CC_host=clang CXX_host=clang++ gmake -j"$(nproc)" binary \ | ||
CONFIG_FLAGS="--dest-cpu=arm64 --fully-static --openssl-use-def-ca-store --v8-disable-maglev" \ | ||
VARIATION="static" | ||
|
||
mv node-$node_ver-linux-x64-static.tar.xz /workspace |
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