-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
don't use no_main and no_core to test IBT #149969
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
base: main
Are you sure you want to change the base?
Conversation
|
|
shhh rustbot i promise i tested it on a newer branch |
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.
|
@bors r+ |
| use run_make_support::{bare_rustc, llvm_readobj}; | ||
|
|
||
| fn main() { | ||
| // `main.rs` is `#![no_std]` to not pull in the currently not-compiled-with-IBT precompiled std. |
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.
| // `main.rs` is `#![no_std]` to not pull in the currently not-compiled-with-IBT precompiled std. | |
| // `lib.rs` is `#![no_std]` to not pull in the currently not-compiled-with-IBT precompiled std. |
The previous test was quite fragile and depended on a bunch of internal features. Simplify it.
Split out of #149937.
cc @jieyouxu @Oneirical