diff options
| author | Niels Sascha Reedijk <niels.reedijk@gmail.com> | 2016-09-24 23:38:56 -0500 |
|---|---|---|
| committer | Alexander von Gluck IV <kallisti5@unixzen.com> | 2016-09-25 11:12:23 -0500 |
| commit | 1a6fc8b7b840fb381b1aefa35b9b3d4c736bae50 (patch) | |
| tree | 0e05d41032bc801ce69ce359645da9a437260469 /src/libstd/env.rs | |
| parent | 2d1d4d199471dbdf0828acbc06cfe452463569af (diff) | |
| download | rust-1a6fc8b7b840fb381b1aefa35b9b3d4c736bae50.tar.gz rust-1a6fc8b7b840fb381b1aefa35b9b3d4c736bae50.zip | |
Add support for the Haiku operating system on x86 and x86_64 machines
* Hand rebased from Niels original work on 1.9.0
Diffstat (limited to 'src/libstd/env.rs')
| -rw-r--r-- | src/libstd/env.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libstd/env.rs b/src/libstd/env.rs index 76eb92bd559..5171fbdf03e 100644 --- a/src/libstd/env.rs +++ b/src/libstd/env.rs @@ -903,6 +903,17 @@ mod os { pub const EXE_EXTENSION: &'static str = "js"; } +#[cfg(target_os = "haiku")] +mod os { + pub const FAMILY: &'static str = "unix"; + pub const OS: &'static str = "haiku"; + pub const DLL_PREFIX: &'static str = "lib"; + pub const DLL_SUFFIX: &'static str = ".so"; + pub const DLL_EXTENSION: &'static str = "so"; + pub const EXE_SUFFIX: &'static str = ""; + pub const EXE_EXTENSION: &'static str = ""; +} + #[cfg(target_arch = "x86")] mod arch { pub const ARCH: &'static str = "x86"; |
