Skip to content

Commit 311a249

Browse files
committed
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.
1 parent 37f70a0 commit 311a249

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

Lines changed: 0 additions & 1 deletion
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)