mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
.
This commit is contained in:
@ -15,6 +15,13 @@ pre-build = [
|
|||||||
"apt-get update && apt-get install --assume-yes --no-install-recommends llvm-dev libclang-dev clang",
|
"apt-get update && apt-get install --assume-yes --no-install-recommends llvm-dev libclang-dev clang",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
# Use specific Docker images for Linux targets to avoid GLIBC compatibility issues
|
||||||
|
[target.x86_64-unknown-linux-gnu]
|
||||||
|
image = "ghcr.io/cross-rs/x86_64-unknown-linux-gnu:0.2.5"
|
||||||
|
|
||||||
|
[target.aarch64-unknown-linux-gnu]
|
||||||
|
image = "ghcr.io/cross-rs/aarch64-unknown-linux-gnu:0.2.5"
|
||||||
|
|
||||||
[target.x86_64-pc-windows-gnu]
|
[target.x86_64-pc-windows-gnu]
|
||||||
# Why do we need a custom Dockerfile on Windows:
|
# Why do we need a custom Dockerfile on Windows:
|
||||||
# 1. `reth-libmdbx` stopped working with MinGW 9.3 that cross image comes with.
|
# 1. `reth-libmdbx` stopped working with MinGW 9.3 that cross image comes with.
|
||||||
|
|||||||
1
Makefile
1
Makefile
@ -236,6 +236,7 @@ build-x86_64-pc-windows-gnu: FEATURES := $(filter-out jemalloc jemalloc-prof,$(F
|
|||||||
build-%:
|
build-%:
|
||||||
RUSTFLAGS="-C link-arg=-lgcc -Clink-arg=-static-libgcc" \
|
RUSTFLAGS="-C link-arg=-lgcc -Clink-arg=-static-libgcc" \
|
||||||
cross build --bin reth-hl --target $* --features "$(FEATURES)" --profile "$(PROFILE)"
|
cross build --bin reth-hl --target $* --features "$(FEATURES)" --profile "$(PROFILE)"
|
||||||
|
|
||||||
##@ Docker
|
##@ Docker
|
||||||
|
|
||||||
# Note: This requires a buildx builder with emulation support. For example:
|
# Note: This requires a buildx builder with emulation support. For example:
|
||||||
|
|||||||
Reference in New Issue
Block a user