Skip to content

Commit 34352d4

Browse files
committed
Set CMAKE_SYSTEM_NAME for solaris/illumos
When cross-compiling to solaris/illumos targets, set CMAKE_SYSTEM_NAME to SunOS.
1 parent bc96516 commit 34352d4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/bootstrap/native.rs

+2
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,8 @@ fn configure_cmake(
383383
cfg.define("CMAKE_SYSTEM_NAME", "Windows");
384384
} else if target.contains("haiku") {
385385
cfg.define("CMAKE_SYSTEM_NAME", "Haiku");
386+
} else if target.contains("solaris") || target.contains("illumos") {
387+
cfg.define("CMAKE_SYSTEM_NAME", "SunOS");
386388
}
387389
// When cross-compiling we should also set CMAKE_SYSTEM_VERSION, but in
388390
// that case like CMake we cannot easily determine system version either.

0 commit comments

Comments
 (0)