mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03:00
Use clang+mold on linux (#12944)
Takes a clean build on my machine from 222s to 185s Release Notes: - N/A
This commit is contained in:
parent
8451dba6a7
commit
ec086945fc
@ -4,3 +4,7 @@ rustflags = ["-C", "symbol-mangling-version=v0", "--cfg", "tokio_unstable"]
|
|||||||
|
|
||||||
[alias]
|
[alias]
|
||||||
xtask = "run --package xtask --"
|
xtask = "run --package xtask --"
|
||||||
|
|
||||||
|
[target.x86_64-unknown-linux-gnu]
|
||||||
|
linker = "/usr/bin/clang"
|
||||||
|
rustflags = ["-C", "link-arg=-fuse-ld=mold"]
|
||||||
|
@ -24,6 +24,8 @@ if [[ -n $apt ]]; then
|
|||||||
libvulkan1
|
libvulkan1
|
||||||
libgit2-dev
|
libgit2-dev
|
||||||
make
|
make
|
||||||
|
clang
|
||||||
|
mold
|
||||||
)
|
)
|
||||||
$maysudo "$apt" install -y "${deps[@]}"
|
$maysudo "$apt" install -y "${deps[@]}"
|
||||||
exit 0
|
exit 0
|
||||||
@ -36,6 +38,8 @@ if [[ -n $dnf ]]; then
|
|||||||
deps=(
|
deps=(
|
||||||
gcc
|
gcc
|
||||||
g++
|
g++
|
||||||
|
clang
|
||||||
|
mold
|
||||||
alsa-lib-devel
|
alsa-lib-devel
|
||||||
fontconfig-devel
|
fontconfig-devel
|
||||||
wayland-devel
|
wayland-devel
|
||||||
|
Loading…
Reference in New Issue
Block a user