mirror of
https://github.com/enso-org/enso.git
synced 2024-12-29 05:02:01 +03:00
746521f8b2
Co-authored-by: Radosław Waśko <radoslaw.wasko@enso.org> Co-authored-by: Dmitry Bushev <bushevdv@gmail.com>
18 lines
474 B
Scala
18 lines
474 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")
|
|
}
|