mirror of
https://github.com/rui314/mold.git
synced 2024-09-11 13:06:59 +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:
parent
fe118f6347
commit
f05e32df4a
@ -143,7 +143,7 @@ may be able to remove the `linker = "clang"` line.
|
|||||||
|
|
||||||
```toml
|
```toml
|
||||||
[target.x86_64-unknown-linux-gnu]
|
[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
|
If you want to use mold for all projects, add the above snippet to
|
||||||
|
Loading…
Reference in New Issue
Block a user