Skip to content

Commit daa5627

Browse files
committed
Change built-in kernel targets to be os = none throughout
Whether for Rust's own `target_os`, LLVM's triples, or GNU config's, the OS-related have fields have been for code running *on* that OS, not code that is *part* of the OS. The difference is huge, as syscall interfaces are nothing like freestanding interfaces. Kernels are (hypervisors and other more exotic situations aside) freestanding programs that use the interfaces provided by the hardware. It's *those* interfaces, the ones external to the program being built and its software dependencies, that are the content of the target. For the Linux Kernel in particular, `target_env: "gnu"` is removed for the same reason: that `-gnu` refers to glibc or GNU/linux, neither of which applies to the kernel itself. Relates to rust-lang#74247 Thanks @ojeda for catching some things.
1 parent f689edf commit daa5627

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unwind/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ cfg_if::cfg_if! {
1515
target_os = "none",
1616
))] {
1717
// These "unix" family members do not have unwinder.
18-
// Note this also matches x86_64-linux-kernel.
18+
// Note this also matches x86_64-unknown-none-linuxkernel.
1919
} else if #[cfg(any(
2020
unix,
2121
windows,

0 commit comments

Comments
 (0)