1
1
mirror of https://github.com/rui314/mold.git synced 2024-09-11 13:06:59 +03:00

Update README

This commit is contained in:
Rui Ueyama 2021-12-29 21:36:06 +09:00
parent 99866f01b2
commit 1c6c8c3479

View File

@ -105,9 +105,9 @@ If you can specify an additional command line option to your compiler
driver by modifying build system's config files, add one of the
following flags to use `mold` instead of `/usr/bin/ld`:
- Clang: pass `-fuse-ld=<absolute-path-to-mold-executable>`;
- Clang: pass `-fuse-ld=mold`
- GCC 12.1.0 or later: pass `-fuse-ld=<absolute-path-to-mold-executable>`;
- GCC 12.1.0 or later: pass `-fuse-ld=mold`
- GCC before 12.1.0: `-fuse-ld` does not accept `mold` as a valid
argument, so you need to use `-B` option instead. `-B` is an option
@ -119,6 +119,10 @@ following flags to use `mold` instead of `/usr/bin/ld`:
`ld` is actually a symlink to `mold`. So, all you need is to pass
`-B/usr/libexec/mold` (or `-B/usr/local/libexec/mold`) to GCC.
If you haven't installed `mold` to any `$PATH`, you can still pass
`-fuse-ld=/absolute/path/to/mold` to clang to use mold. GCC does not
take an absolute path as an argument for `-fuse-ld` though.
</details>
<details><summary>If you are using Rust</summary>