-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Link sanitizers when creating dynamic libraries on macOS #74793
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
Conversation
r? @kennytm (rust_highfive has picked a reviewer for you, use r? to override) |
This seems somewhat reasonable, but it's not clear to me why it wasn't needed for Linux. Do we implicitly link to sanitizers there? Why is that not happening on macOS? I think that merits some comments in the code. Regardless, I'm not really familiar enough with sanitizers to do more than rubber stamp this. I guess let's cc @cuviper @nikic and @nagisa as LLVM wg (since that's where our sanitizers come from); can one of you either take over review or suggest an assignee? |
Added a comment explaining the rationale. The implementation as usual is intended to follow clang, except that we currently don't have any switches to select between static / shared type of runtime on targets were both could be supported. |
The explanation makes sense to me, but I don't know enough about the macOS target to approve this change. |
That explanation feels sufficient to me, so I'm going to @bors r+ That said I'm mostly only approving because this affects sanitizers only which are unstable. |
📌 Commit 4fbbc81 has been approved by |
☀️ Test successful - checks-actions, checks-azure |
Link sanitizer runtime when creating dynamic libraries on macOS
to resolve sanitizer runtime symbols and avoid failure at link time.
Closes #74571.