1
1
mirror of https://github.com/rui314/mold.git synced 2024-07-14 16:20:34 +03:00

Update README.md

GCC doesn't accept a path as an argument to `-fuse-ld`. `-fuse-ld=mold` is enough.

Tested with
```
gcc (GCC) 13.2.1 20231205 (Red Hat 13.2.1-6)
```
This commit is contained in:
Muhammad Mominul Huque 2023-12-31 18:21:30 +06:00 committed by GitHub
parent fe118f6347
commit f05e32df4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -143,7 +143,7 @@ may be able to remove the `linker = "clang"` line.
```toml
[target.x86_64-unknown-linux-gnu]
rustflags = ["-C", "link-arg=-fuse-ld=/path/to/mold"]
rustflags = ["-C", "link-arg=-fuse-ld=mold"]
```
If you want to use mold for all projects, add the above snippet to