-
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
Add sanitizer support for modern iOS platforms #106476
Add sanitizer support for modern iOS platforms #106476
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Mark-Simulacrum (or someone else) soon. Please see the contribution instructions for more information. |
These commits modify compiler targets. |
src/bootstrap/native.rs
Outdated
&mut cfg, | ||
use_compiler_launcher, | ||
LdFlags::default(), | ||
&["-fembed-bitcode=off"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is required because sanitizers are built with the -U
linker flag, which isn't compatible with bitcode. The sanitizers shipped in Xcode also don't have bitcode, and theoretically that shouldn't ever matter since on iOS folks don't ship sanitizers to prod. This wouldn't be necessary if bitcode was dropped entirely now that Xcode 14 deprecated it and Apple no longer accepts apps with it, see rust-lang/cc-rs#768
☔ The latest upstream changes (presumably #106429) made this pull request unmergeable. Please resolve the merge conflicts. |
b51d892
to
df4b929
Compare
cc @deg4uss3r r? @badboy (Not quite for ios, but seems like there might be more context in iOS simulator target maintainers) |
Neat. So far I never even tried to reach for the sanitizers, but if it's that easy to allow them I don't see why not. If this only affects sanitizer builds then I see no problem. |
Agreed with @badboy sorry for the late response, behind on OSS work :/ |
Hello, checking progress: what's the status? is this still waiting on a review or maybe waiting for an official r+ (see comment)? |
@bors r+ |
📌 Commit df4b929cef1ada5b7f1cd90ddc4939e2bc0896b1 has been approved by It is now in the queue for this repository. |
Apparently I can approve it, so I did. |
⌛ Testing commit df4b929cef1ada5b7f1cd90ddc4939e2bc0896b1 with merge 1cc58a85fde9aab9f56340bdd4c254d17760fbd8... |
💔 Test failed - checks-actions |
This comment has been minimized.
This comment has been minimized.
df4b929
to
e7cfcb5
Compare
Hoping to have fixed the CI issue here, I was passing |
asan and tsan generally support iOS, but that previously wasn't configured in rust. This only adds support for the simulator architectures, and arm64 device architecture, not the older 32 bit architectures.
e7cfcb5
to
aacf321
Compare
@bors r+ |
…-modern-ios-platforms, r=badboy Add sanitizer support for modern iOS platforms asan and tsan generally support iOS, but that previously wasn't configured in rust. This only adds support for the simulator architectures, and arm64 device architecture, not the older 32 bit architectures.
☀️ Test successful - checks-actions |
Finished benchmarking commit (6d819a4): comparison URL. Overall result: ❌ regressions - no action needed@rustbot label: -perf-regression Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
|
asan and tsan generally support iOS, but that previously wasn't configured in rust. This only adds support for the simulator architectures, and arm64 device architecture, not the older 32 bit architectures.