File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change
1
+
2
+ # .cargo/config.toml
3
+ # On Windows
4
+ # ```
5
+ # cargo install -f cargo-binutils
6
+ # rustup component add llvm-tools-preview
7
+ # ```
8
+ [target .x86_64-pc-windows-msvc ]
9
+ rustflags = [" -C" , " link-arg=-fuse-ld=lld" ]
10
+ [target .x86_64-pc-windows-gnu ]
11
+ rustflags = [" -C" , " link-arg=-fuse-ld=lld" ]
12
+
13
+ # On Linux:
14
+ # - Ubuntu, `sudo apt-get install lld clang`
15
+ # - Arch, `sudo pacman -S lld clang`
16
+ [target .x86_64-unknown-linux-gnu ]
17
+ rustflags = [" -C" , " linker=clang" , " -C" , " link-arg=-fuse-ld=lld" ]
18
+
19
+ # On MacOS, `brew install llvm` and follow steps in `brew info llvm`
20
+ [target .x86_64-apple-darwin ]
21
+ rustflags = [" -C" , " link-arg=-fuse-ld=lld" ]
22
+ [target .aarch64-apple-darwin ]
23
+ rustflags = [" -C" , " link-arg=-fuse-ld=/opt/homebrew/opt/llvm/bin/ld64.lld" ]
Original file line number Diff line number Diff line change 30
30
uses : dtolnay/rust-toolchain@stable
31
31
32
32
- name : Install dependencies
33
- run : sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev
33
+ run : sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev lld clang
34
34
35
35
- name : Populate target directory from cache
36
36
uses : Leafwing-Studios/cargo-cache@v2
You can’t perform that action at this time.
0 commit comments