Skip to content

Commit 3e0a44e

Browse files
authored
OpenBSD support (#78)
1 parent 6d9bf2c commit 3e0a44e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ impl Build {
5353
let host = &self.host.as_ref().expect("HOST dir not set")[..];
5454
if host.contains("dragonfly")
5555
|| host.contains("freebsd")
56+
|| host.contains("openbsd")
5657
|| host.contains("solaris")
5758
|| host.contains("illumos")
5859
{
@@ -210,6 +211,7 @@ impl Build {
210211
"x86_64-unknown-illumos" => "solaris64-x86_64-gcc",
211212
"x86_64-unknown-linux-gnu" => "linux-x86_64",
212213
"x86_64-unknown-linux-musl" => "linux-x86_64",
214+
"x86_64-unknown-openbsd" => "BSD-x86_64",
213215
"x86_64-unknown-netbsd" => "BSD-x86_64",
214216
"x86_64-sun-solaris" => "solaris64-x86_64-gcc",
215217
"wasm32-unknown-emscripten" => "gcc",

0 commit comments

Comments
 (0)