about summary refs log tree commit diff
path: root/src/tools
diff options
context:
space:
mode:
authorColin Finck <colin.finck@rwth-aachen.de>2018-07-30 15:50:51 +0200
committerColin Finck <colin.finck@rwth-aachen.de>2018-07-30 15:50:51 +0200
commite50f4eeaadcea0c1dcc28e15dfe91dd38393a6da (patch)
treec61ad5332011435e2efb2ac7feaebd227d82ffbe /src/tools
parent7bbcd005b30582d07f1a39dcf50f77b54e055828 (diff)
downloadrust-e50f4eeaadcea0c1dcc28e15dfe91dd38393a6da.tar.gz
rust-e50f4eeaadcea0c1dcc28e15dfe91dd38393a6da.zip
Add targets for HermitCore (https://hermitcore.org) to the Rust compiler and port libstd to it.
As a start, the port uses the simplest possible configuration (no jemalloc, abort on panic)
and makes use of existing Unix-specific code wherever possible.
It adds targets for x86_64 (current main HermitCore platform) and aarch64 (HermitCore platform
under development).

Together with the patches to "liblibc" and "llvm", this enables HermitCore applications to be
written in Rust.
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/build-manifest/src/main.rs1
-rw-r--r--src/tools/compiletest/src/util.rs1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/build-manifest/src/main.rs b/src/tools/build-manifest/src/main.rs
index 83b2895e1d6..bbce87a7c9a 100644
--- a/src/tools/build-manifest/src/main.rs
+++ b/src/tools/build-manifest/src/main.rs
@@ -109,6 +109,7 @@ static TARGETS: &'static [&'static str] = &[
     "x86_64-sun-solaris",
     "x86_64-unknown-cloudabi",
     "x86_64-unknown-freebsd",
+    "x86_64-unknown-hermit",
     "x86_64-unknown-linux-gnu",
     "x86_64-unknown-linux-gnux32",
     "x86_64-unknown-linux-musl",
diff --git a/src/tools/compiletest/src/util.rs b/src/tools/compiletest/src/util.rs
index 91e7399f1f4..2a716970ca7 100644
--- a/src/tools/compiletest/src/util.rs
+++ b/src/tools/compiletest/src/util.rs
@@ -25,6 +25,7 @@ const OS_TABLE: &'static [(&'static str, &'static str)] = &[
     ("freebsd", "freebsd"),
     ("fuchsia", "fuchsia"),
     ("haiku", "haiku"),
+    ("hermit", "hermit"),
     ("ios", "ios"),
     ("l4re", "l4re"),
     ("linux", "linux"),