mirror of
https://github.com/enso-org/enso.git
synced 2024-11-27 17:32:12 +03:00
21 lines
492 B
Scala
21 lines
492 B
Scala
|
object Platform {
|
||
|
|
||
|
/**
|
||
|
* Returns true if the build system is running on Windows.
|
||
|
*/
|
||
|
def isWindows: Boolean =
|
||
|
sys.props("os.name").toLowerCase().contains("windows")
|
||
|
|
||
|
/**
|
||
|
* Returns true if the build system is running on Linux.
|
||
|
*/
|
||
|
def isLinux: Boolean =
|
||
|
sys.props("os.name").toLowerCase().contains("linux")
|
||
|
|
||
|
/**
|
||
|
* Returns true if the build system is running on macOS.
|
||
|
*/
|
||
|
def isMacOS: Boolean =
|
||
|
sys.props("os.name").toLowerCase().contains("mac")
|
||
|
}
|