scala.scalanative.build.Platform.scala Maven / Gradle / Ivy
package scala.scalanative.build
import java.util.Locale
object Platform {
private lazy val osUsed =
System.getProperty("os.name", "unknown").toLowerCase(Locale.ROOT)
lazy val isWindows: Boolean = osUsed.startsWith("windows")
lazy val isUnix: Boolean = osUsed.contains("linux") || osUsed.contains("unix")
lazy val isMac: Boolean = osUsed.contains("mac")
}