-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a3e7612
commit c770f1f
Showing
7 changed files
with
89 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
[alias] | ||
xtask = "run --package xtask --" | ||
|
||
# On Windows | ||
# ``` | ||
# cargo install -f cargo-binutils | ||
# rustup component add llvm-tools-preview | ||
# ``` | ||
[target.x86_64-pc-windows-msvc] | ||
rustflags = ["-C", "link-arg=-fuse-ld=lld"] | ||
|
||
[target.x86_64-pc-windows-gnu] | ||
rustflags = ["-C", "link-arg=-fuse-ld=lld"] | ||
|
||
# On Linux: | ||
# - Ubuntu, `sudo apt-get install lld clang` | ||
# - Arch, `sudo pacman -S lld clang` | ||
[target.x86_64-unknown-linux-gnu] | ||
rustflags = ["-C", "linker=clang", "-C", "link-arg=-fuse-ld=lld"] | ||
|
||
[target.aarch64-unknown-linux-gnu] | ||
rustflags = ["-C", "linker=clang", "-C", "link-arg=-fuse-ld=lld"] | ||
|
||
[target.x86_64-unknown-linux-musl] | ||
rustflags = ["-C", "linker=clang", "-C", "link-arg=-fuse-ld=lld"] | ||
|
||
[target.aarch64-unknown-linux-musl] | ||
rustflags = ["-C", "linker=clang", "-C", "link-arg=-fuse-ld=lld"] | ||
|
||
# On MacOS, `brew install llvm` and follow steps in `brew info llvm` | ||
[target.x86_64-apple-darwin] | ||
rustflags = ["-C", "link-arg=-fuse-ld=lld"] | ||
|
||
[target.aarch64-apple-darwin] | ||
rustflags = ["-C", "link-arg=-fuse-ld=lld"] | ||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters