Add support for target_os = "nebulet". (#319)

This commit is contained in:
Dan Gohman
2018-05-01 05:37:56 -07:00
committed by GitHub
parent 8fa0e6da99
commit 5c2ada88f5

View File

@@ -34,7 +34,7 @@ use raw_cpuid::CpuId;
pub fn builders() -> Result<(settings::Builder, isa::Builder), &'static str> {
let mut flag_builder = settings::builder();
if cfg!(unix) {
if cfg!(any(unix, target_os = "nebulet")) {
flag_builder.set("call_conv", "system_v").unwrap();
} else if cfg!(windows) {
flag_builder.set("call_conv", "fastcall").unwrap();