Skip to content

Commit 316dca5

Browse files
committed
Use SunOS system name for Solaris targets
1 parent daeb9b0 commit 316dca5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,10 @@ impl Config {
341341
if !self.defined("CMAKE_SYSTEM_NAME") {
342342
cmd.arg("-DCMAKE_SYSTEM_NAME=Generic");
343343
}
344+
} else if target.contains("solaris") {
345+
if !self.defined("CMAKE_SYSTEM_NAME") {
346+
cmd.arg("-DCMAKE_SYSTEM_NAME=SunOS");
347+
}
344348
}
345349
let mut is_ninja = false;
346350
if let Some(ref generator) = self.generator {

0 commit comments

Comments
 (0)