hermitkernel-target: Set OS to "none"

For our kernel targets, we should not set OS, as the kernel runs bare
metal without a circular dependency on std.

This also prepares us for unifying with
https://github.com/rust-lang/rust/pull/89062. This patch requires
libhermit-rs to change a `cfg`s from `target_os = "hermit"` to `target_os
= "none"`.

I tested this patch locally.
This commit is contained in:
Martin Kröning 2021-10-29 18:06:43 +02:00
parent 37f70a0e1e
commit 311a249f9d

View File

@ -8,7 +8,6 @@ pub fn opts() -> TargetOptions {
);
TargetOptions {
os: "hermit".to_string(),
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
disable_redzone: true,
linker: Some("rust-lld".to_owned()),