diff options
| author | Martin Kröning <mkroening@posteo.net> | 2021-10-29 18:06:43 +0200 |
|---|---|---|
| committer | Martin Kröning <mkroening@posteo.net> | 2021-10-29 18:07:36 +0200 |
| commit | 311a249f9d9e187918c30dbc845eea6964ac5684 (patch) | |
| tree | 46db02722423512e210f15fdb675a173fa534d54 /compiler | |
| parent | 37f70a0e1e04086aee7ae57fbefd6d4071953506 (diff) | |
| download | rust-311a249f9d9e187918c30dbc845eea6964ac5684.tar.gz rust-311a249f9d9e187918c30dbc845eea6964ac5684.zip | |
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.
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_target/src/spec/hermit_kernel_base.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/compiler/rustc_target/src/spec/hermit_kernel_base.rs b/compiler/rustc_target/src/spec/hermit_kernel_base.rs index 414b0f7ff23..ce3dad26458 100644 --- a/compiler/rustc_target/src/spec/hermit_kernel_base.rs +++ b/compiler/rustc_target/src/spec/hermit_kernel_base.rs @@ -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()), |
