about summary refs log tree commit diff
path: root/compiler/rustc_mir/src/transform/coverage/debug.rs
diff options
context:
space:
mode:
authorStefan Lankes <slankes@eonerc.rwth-aachen.de>2021-05-05 01:03:50 +0200
committerStefan Lankes <slankes@eonerc.rwth-aachen.de>2021-05-07 10:09:11 +0200
commit76f884abb979656f368ef39d0338b609323e43aa (patch)
treea2c4f3b1cfdde0fff41b8344e78ae0e72b15a015 /compiler/rustc_mir/src/transform/coverage/debug.rs
parentdc5f2cd2669eba101cef2626d02275cfc6f283e2 (diff)
downloadrust-76f884abb979656f368ef39d0338b609323e43aa.tar.gz
rust-76f884abb979656f368ef39d0338b609323e43aa.zip
rename LLVM target for RustyHermit
RustyHermit ist is a library operating system. In this case, we link a static library as kernel to the application. The final result is a bootable application. The library and the application have to use the same target. Currently, the targets are different (see also https://github.com/rust-lang/rust/blob/master/compiler/rustc_target/src/spec/x86_64_unknown_hermit.rs). Consequently, this commit change the LLVM target to 'hermit'.

This kernel spec is needed to disable the usage of FPU registers, which are not allowed in kernel space. In contrast to Linux, everything is running in ring 0 and also in the same address space.

Signed-off-by: Stefan Lankes <slankes@eonerc.rwth-aachen.de>
Diffstat (limited to 'compiler/rustc_mir/src/transform/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions