Skip to content

Commit

Permalink
mold linker
Browse files Browse the repository at this point in the history
  • Loading branch information
mizar committed Feb 9, 2025
1 parent 69ce699 commit 85fb4f2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion xtask/templates/install-command.bash.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -e

sudo apt-get update
sudo apt-get install -y --no-install-recommends build-essential ca-certificates curl
sudo apt-get install -y --no-install-recommends build-essential ca-certificates curl mold

rust_version={{ rust_version }}
rust_channel={{ rust_channel }}
Expand All @@ -25,6 +25,9 @@ cat > ./.cargo/config.toml << EOF
rustflags = [
"--cfg", "atcoder",
]

[target.'cfg(target_os = "linux")']
rustflags = ["-C", "link-arg=-fuse-ld=mold"]
EOF

cat > ./Cargo.toml << EOF
Expand Down

0 comments on commit 85fb4f2

Please sign in to comment.