Skip to content

Commit ce48803

Browse files
authored
Rollup merge of #90404 - mkroening:hermit-kernel-no-os, r=joshtriplett
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 #89062. This patch requires libhermit-rs to change a `cfg`s from `target_os = "hermit"` to `target_os = "none"`. I tested this patch locally. CC: `@stlankes`
2 parents 0da75bc + 311a249 commit ce48803

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

compiler/rustc_target/src/spec/hermit_kernel_base.rs

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ pub fn opts() -> TargetOptions {
88
);
99

1010
TargetOptions {
11-
os: "hermit".to_string(),
1211
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
1312
disable_redzone: true,
1413
linker: Some("rust-lld".to_owned()),

0 commit comments

Comments
 (0)