From f05e32df4a555c66be9216b33961ef8297c7001b Mon Sep 17 00:00:00 2001 From: Muhammad Mominul Huque Date: Sun, 31 Dec 2023 18:21:30 +0600 Subject: [PATCH] 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) ``` --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f454f270..9fbae267 100644 --- a/README.md +++ b/README.md @@ -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