1
Fork 0

Add support for the Haiku operating system on x86 and x86_64 machines

* Hand rebased from Niels original work on 1.9.0
This commit is contained in:
Niels Sascha Reedijk 2016-09-24 23:38:56 -05:00 committed by Alexander von Gluck IV
parent 2d1d4d1994
commit 1a6fc8b7b8
23 changed files with 468 additions and 11 deletions

View file

@ -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";