diff options
| author | Colin Finck <colin.finck@rwth-aachen.de> | 2018-07-30 15:50:51 +0200 |
|---|---|---|
| committer | Colin Finck <colin.finck@rwth-aachen.de> | 2018-07-30 15:50:51 +0200 |
| commit | e50f4eeaadcea0c1dcc28e15dfe91dd38393a6da (patch) | |
| tree | c61ad5332011435e2efb2ac7feaebd227d82ffbe /src/libstd/sys/unix/os.rs | |
| parent | 7bbcd005b30582d07f1a39dcf50f77b54e055828 (diff) | |
| download | rust-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/libstd/sys/unix/os.rs')
| -rw-r--r-- | src/libstd/sys/unix/os.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstd/sys/unix/os.rs b/src/libstd/sys/unix/os.rs index addf555eb10..1d92e8fc97c 100644 --- a/src/libstd/sys/unix/os.rs +++ b/src/libstd/sys/unix/os.rs @@ -47,6 +47,7 @@ extern { target_os = "netbsd", target_os = "openbsd", target_os = "android", + target_os = "hermit", target_env = "newlib"), link_name = "__errno")] #[cfg_attr(target_os = "solaris", link_name = "___errno")] @@ -376,7 +377,7 @@ pub fn current_exe() -> io::Result<PathBuf> { } } -#[cfg(any(target_os = "fuchsia", target_os = "l4re"))] +#[cfg(any(target_os = "fuchsia", target_os = "l4re", target_os = "hermit"))] pub fn current_exe() -> io::Result<PathBuf> { use io::ErrorKind; Err(io::Error::new(ErrorKind::Other, "Not yet implemented!")) |
