diff --git a/README.md b/README.md index d96aa38..9c81c44 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ wonderful [Inferno](https://github.com/jonhoo/inferno) all-rust flamegraph gener Windows is getting [dtrace support](https://techcommunity.microsoft.com/t5/Windows-Kernel-Internals/DTrace-on-Windows/ba-p/362902), so if you try this out please let us know how it goes. :D -**Note**: If you're using lld on Linux, you must use the `--no-rosegment` flag. Otherwise perf will not be able to generate accurate stack traces ([explanation](https://crbug.com/919499#c16)). For example +**Note**: If you're using lld or mold on Linux, you must use the `--no-rosegment` flag. Otherwise perf will not be able to generate accurate stack traces ([explanation](https://crbug.com/919499#c16)). For example, for lld: ```toml [target.x86_64-unknown-linux-gnu] @@ -25,6 +25,14 @@ linker = "/usr/bin/clang" rustflags = ["-Clink-arg=-fuse-ld=lld", "-Clink-arg=-Wl,--no-rosegment"] ``` +and for mold: + +```toml +[target.x86_64-unknown-linux-gnu] +linker = "clang" +rustflags = ["-Clink-arg=-fuse-ld=/usr/local/bin/mold", "-Clink-arg=-Wl,--no-rosegment"] +``` + ## Installation ```