-
Notifications
You must be signed in to change notification settings - Fork 181
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
ci: add nopanic check for windows #526
Conversation
c87d5d6
to
4c4450a
Compare
It looks like |
On my machine |
LTO is irrelevant here. I tried to use the following program: #![no_std]
#[panic_handler]
fn panic(_info: &core::panic::PanicInfo) -> ! {
extern "C" {
fn panic_nonexistent() -> !;
}
unsafe { panic_nonexistent() }
}
#[no_mangle]
pub extern "C" fn getrandom_wrapper(_: *mut u8, _: usize) -> u32 {
0
} And it still was failing the linking step. I will try to use a slightly different approach to this a bit later. |
It should be highly relevant. Link time optimization happens before the linker is given anything (unless you use llvm's linker) so if |
Huh, you are right. Thank you! TIL, before that I thought LTO applies only during "link time" and has not effect in cases like the snippet above. |
f1be76c
to
c4e08aa
Compare
f8cb075
to
08d7700
Compare
This check now works thanks to LTO enabled in #526.
Relevant issue: #516