chore: disable zld linker

This commit is contained in:
nathan 2023-05-05 09:13:05 +08:00
parent bb80fd5350
commit 08847fad1d
2 changed files with 2 additions and 20 deletions

View File

@ -1,14 +0,0 @@
[target.x86_64-unknown-linux-gnu]
rustflags = ["-C", "linker=clang", "-C", "link-arg=-fuse-ld=lld"]
[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.x86_64-apple-darwin]
rustflags = ["-C", "link-arg=-fuse-ld=/usr/local/bin/zld"]
[target.aarch64-apple-darwin]
rustflags = ["-C", "link-arg=-fuse-ld=/usr/local/bin/zld"]

View File

@ -22,9 +22,9 @@ cargo install --version="~0.6" sqlx-cli --no-default-features --features rustls,
```bash ```bash
# Ubuntu # Ubuntu
sudo apt-get install lld clang libssl-dev postgresql-client sudo apt-get install libssl-dev postgresql-client
# Arch # Arch
sudo pacman -S lld clang postgresql sudo pacman -S postgresql
``` ```
``` ```
@ -33,10 +33,6 @@ cargo install --version="~0.6" sqlx-cli --no-default-features --features rustls,
### MacOS ### MacOS
```bash
brew install michaeleisel/zld/zld
```
``` ```
cargo install --version="~0.6" sqlx-cli --no-default-features --features rustls,postgres cargo install --version="~0.6" sqlx-cli --no-default-features --features rustls,postgres
``` ```