Fixes ARM64 Docker build failure caused by R_AARCH64_CALL26 relocation overflow when linking libv8. mold automatically generates range extension thunks (veneers) to bridge calls exceeding the ±128MB limit. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
27 lines
571 B
TOML
27 lines
571 B
TOML
[build]
|
|
incremental = true
|
|
|
|
[target.x86_64-unknown-linux-gnu]
|
|
linker = "clang"
|
|
rustflags = ["-C", "link-arg=-fuse-ld=mold"]
|
|
|
|
[target.aarch64-unknown-linux-gnu]
|
|
linker = "clang"
|
|
rustflags = ["-C", "link-arg=-fuse-ld=mold"]
|
|
|
|
[target.x86_64-apple-darwin]
|
|
rustflags = [
|
|
"-C", "link-arg=-undefined",
|
|
"-C", "link-arg=dynamic_lookup",
|
|
"-C", "link-args=-Wl,-rpath,$ORIGIN/"
|
|
]
|
|
|
|
[target.aarch64-apple-darwin]
|
|
rustflags = [
|
|
"-C", "link-arg=-undefined",
|
|
"-C", "link-arg=dynamic_lookup",
|
|
"-C", "link-args=-Wl,-rpath,$ORIGIN/"
|
|
]
|
|
|
|
[net]
|
|
git-fetch-with-cli = true |