rust-lang / nomicon

The Dark Arts of Advanced and Unsafe Rust Programming
https://doc.rust-lang.org/nomicon/
Apache License 2.0
1.74k stars 256 forks source link

Tidy up beneath-std, support Windows-MSVC without libc #450

Closed saethlin closed 1 month ago

saethlin commented 1 month ago

I've run into this because my other PR breaks these examples: https://github.com/rust-lang/rust/pull/124050

(also the comment about crt0.o on these can't be right, because this was being built on Windows)

bjorn3 commented 1 month ago

On Unix a dependency on libc is still necessary for crt1.o. As is libunwind for any panic=unwind target (even when compiling with panic=abort, as libcore references it _Unwind_Resume from libunwind)

saethlin commented 1 month ago

Ah! I'll improve the comments.