Speedup compilation on windows (#1766)

* Speedup compilation on windows

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>

* Speedup CI on macOS

Use lld

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>

---------

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2024-06-15 10:02:21 +10:00 committed by GitHub
parent 07dd868fa6
commit 59ba0cb92a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

16
.cargo/config.toml Normal file
View file

@ -0,0 +1,16 @@
[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"]
[target.aarch64-pc-windows-msvc]
rustflags = ["-C", "link-arg=-fuse-ld=lld"]
[target.aarch64-pc-windows-gnu]
rustflags = ["-C", "link-arg=-fuse-ld=lld"]
[target.x86_64-apple-darwin]
rustflags = ["-C", "link-arg=-fuse-ld=lld"]
[target.x86_64h-apple-darwin]
rustflags = ["-C", "link-arg=-fuse-ld=lld"]
[target.aarch64-apple-darwin]
rustflags = ["-C", "link-arg=-fuse-ld=lld"]