Skip to content

Commit

Permalink
Use clang+mold on linux (zed-industries#12944)
Browse files Browse the repository at this point in the history
Takes a clean build on my machine from 222s to 185s

Release Notes:

- N/A
  • Loading branch information
ConradIrwin authored Jun 12, 2024
1 parent 8451dba commit ec08694
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ rustflags = ["-C", "symbol-mangling-version=v0", "--cfg", "tokio_unstable"]

[alias]
xtask = "run --package xtask --"

[target.x86_64-unknown-linux-gnu]
linker = "/usr/bin/clang"
rustflags = ["-C", "link-arg=-fuse-ld=mold"]
4 changes: 4 additions & 0 deletions script/linux
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ if [[ -n $apt ]]; then
libvulkan1
libgit2-dev
make
clang
mold
)
$maysudo "$apt" install -y "${deps[@]}"
exit 0
Expand All @@ -36,6 +38,8 @@ if [[ -n $dnf ]]; then
deps=(
gcc
g++
clang
mold
alsa-lib-devel
fontconfig-devel
wayland-devel
Expand Down

0 comments on commit ec08694

Please sign in to comment.