Skip to content

Commit 5f94f6c

Browse files
authored
Add support for illumos triple (#56)
1 parent 128c0c5 commit 5f94f6c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/lib.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@ impl Build {
5252

5353
fn cmd_make(&self) -> Command {
5454
let host = &self.host.as_ref().expect("HOST dir not set")[..];
55-
if host.contains("dragonfly") || host.contains("freebsd") || host.contains("solaris") {
55+
if host.contains("dragonfly")
56+
|| host.contains("freebsd")
57+
|| host.contains("solaris")
58+
|| host.contains("illumos")
59+
{
5660
Command::new("gmake")
5761
} else {
5862
Command::new("make")
@@ -178,6 +182,7 @@ impl Build {
178182
"x86_64-pc-windows-msvc" => "VC-WIN64A",
179183
"x86_64-unknown-freebsd" => "BSD-x86_64",
180184
"x86_64-unknown-dragonfly" => "BSD-x86_64",
185+
"x86_64-unknown-illumos" => "solaris64-x86_64-gcc",
181186
"x86_64-unknown-linux-gnu" => "linux-x86_64",
182187
"x86_64-unknown-linux-musl" => "linux-x86_64",
183188
"x86_64-unknown-netbsd" => "BSD-x86_64",

0 commit comments

Comments
 (0)