-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Coverage is not generated when using rust-lld as linker #79555
Comments
This comment has been minimized.
This comment has been minimized.
I forgot to add these important details:
|
Just a follow-up regarding the implementation of For someone familiar with |
Information from https://bugs.chromium.org/p/chromium/issues/detail?id=919499#c16 suggests that passing [target.x86_64-unknown-linux-gnu]
linker = "/usr/bin/clang"
rustflags = ["-Clink-arg=-fuse-ld=lld", "-Clink-arg=-Wl,--no-rosegment"] (As came up in flamegraph-rs/flamegraph#157.) |
We were able to add armv7-unknown-linux-gnueabihf without rust-lang/rust#79555 being fixed.
We were able to add armv7-unknown-linux-gnueabihf without rust-lang/rust#79555 being fixed.
We were able to add armv7-unknown-linux-gnueabihf without rust-lang/rust#79555 being fixed.
First:
No changes to the generated crate are necessary. Then:
and
I expected to see this happen:
The profiling data is generated; i.e. each
find
command outputs at least one result.Instead, this happened:
No profiling data is generated.
This seems very similar to Issue #71233: "Coverage is not generated when using lld as linker" and it may be a regression.
Note that the specific combination of
RUSTFLAGS
that I'm trying to use isRUSTFLAGS="-Zinstrument-coverage -Clink-self-contained=yes -Clinker=rust-lld"
so that I can use the new self-contained linking support for musl targets when profiling; see https://github.com/rust-lang/rust/blob/master/RELEASES.md#compiler. I think this combination of flags will become commonplace soon.The text was updated successfully, but these errors were encountered: