From 6d2b12f6632df54145138489ff16152059abb27e Mon Sep 17 00:00:00 2001 From: Kiron Date: Tue, 3 Nov 2020 15:51:26 +0800 Subject: [PATCH] OpenBSD support --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 4019e812..125b4814 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -53,6 +53,7 @@ impl Build { let host = &self.host.as_ref().expect("HOST dir not set")[..]; if host.contains("dragonfly") || host.contains("freebsd") + || host.contains("openbsd") || host.contains("solaris") || host.contains("illumos") { @@ -210,6 +211,7 @@ impl Build { "x86_64-unknown-illumos" => "solaris64-x86_64-gcc", "x86_64-unknown-linux-gnu" => "linux-x86_64", "x86_64-unknown-linux-musl" => "linux-x86_64", + "x86_64-unknown-openbsd" => "BSD-x86_64", "x86_64-unknown-netbsd" => "BSD-x86_64", "x86_64-sun-solaris" => "solaris64-x86_64-gcc", "wasm32-unknown-emscripten" => "gcc",