about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2020-10-11 18:01:32 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2021-03-01 12:46:25 -0500
commit9d25ccf0e8dd69f4086ad8b59bb8785318926b05 (patch)
tree1c6cff81f8cf51472596d320c10d68ff5dab0d4f /src/test/codegen/src-hash-algorithm
parent5233edcf1c7ee70ac25e4ec1115c3546f53d8a2d (diff)
downloadrust-9d25ccf0e8dd69f4086ad8b59bb8785318926b05.tar.gz
rust-9d25ccf0e8dd69f4086ad8b59bb8785318926b05.zip
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 #74247

Thanks @ojeda for catching some things.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm')
0 files changed, 0 insertions, 0 deletions