rust/compiler/rustc_target/src
Yuki Okushi d1dc16623f
Rollup merge of #77916 - QuiltOS:kernel-code-targets-os-none, r=joshtriplett
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
hat 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 #74247
2021-03-07 10:41:04 +09:00
..
abi Explicitly mark x86-interrupt ABI argument as byval 2021-02-28 10:19:44 +01:00
asm New pass to deduplicate blocks 2021-02-21 21:51:54 +01:00
spec Rollup merge of #77916 - QuiltOS:kernel-code-targets-os-none, r=joshtriplett 2021-03-07 10:41:04 +09:00
lib.rs Stabilize str_split_once 2021-02-09 23:17:11 -05:00