Skip to content

Commit

Permalink
Globally override default ld to ld.mold
Browse files Browse the repository at this point in the history
  • Loading branch information
TerrorJack committed Sep 7, 2023
1 parent c6886be commit 9e9acd8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ apk add --no-cache \
mold \
samurai

{
echo "[target.$(rustup target list --installed)]"
echo 'rustflags = ["-C", "link-arg=-fuse-ld=mold"]'
} > $CARGO_HOME/config.toml
find /usr -type f -executable -name "ld" -exec sh -c 'ln -sf /usr/bin/ld.mold {}' \;

curl -f -L --retry 5 https://github.com/microsoft/mimalloc/archive/refs/tags/v$MIMALLOC_VERSION.tar.gz | tar xz --strip-components=1

Expand Down

0 comments on commit 9e9acd8

Please sign in to comment.