We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 311d70c commit 287bc07Copy full SHA for 287bc07
src/lib.rs
@@ -51,11 +51,11 @@ impl Build {
51
}
52
53
fn cmd_make(&self) -> Command {
54
- match &self.host.as_ref().expect("HOST dir not set")[..] {
55
- "x86_64-unknown-dragonfly" => Command::new("gmake"),
56
- "x86_64-unknown-freebsd" => Command::new("gmake"),
57
- "x86_64-sun-solaris" => Command::new("gmake"),
58
- _ => Command::new("make"),
+ let host = &self.host.as_ref().expect("HOST dir not set")[..];
+ if host.contains("dragonfly") || host.contains("freebsd") || host.contains("solaris") {
+ Command::new("gmake")
+ } else {
+ Command::new("make")
59
60
61
0 commit comments