equal
deleted
inserted
replaced
50 val ISABELLE_PLATFORM_FAMILY: String = { |
50 val ISABELLE_PLATFORM_FAMILY: String = { |
51 val family0 = get("ISABELLE_PLATFORM_FAMILY") |
51 val family0 = get("ISABELLE_PLATFORM_FAMILY") |
52 if (family0 == "linux" && is_arm) "linux_arm" else family0 |
52 if (family0 == "linux" && is_arm) "linux_arm" else family0 |
53 } |
53 } |
54 |
54 |
55 def is_linux: Boolean = |
55 def is_linux: Boolean = ISABELLE_PLATFORM_FAMILY.startsWith("linux") |
56 ISABELLE_PLATFORM_FAMILY == "linux" || |
56 def is_macos: Boolean = ISABELLE_PLATFORM_FAMILY.startsWith("macos") |
57 ISABELLE_PLATFORM_FAMILY == "linux_arm" |
57 def is_windows: Boolean = ISABELLE_PLATFORM_FAMILY.startsWith("windows") |
58 def is_macos: Boolean = ISABELLE_PLATFORM_FAMILY == "macos" |
|
59 def is_windows: Boolean = ISABELLE_PLATFORM_FAMILY == "windows" |
|
60 |
58 |
61 def arch_64: String = if (is_arm) "arm64" else "x86_64" |
59 def arch_64: String = if (is_arm) "arm64" else "x86_64" |
62 def arch_64_32: String = if (is_arm) "arm64_32" else "x86_64_32" |
60 def arch_64_32: String = if (is_arm) "arm64_32" else "x86_64_32" |
63 |
61 |
64 def os_name: String = if (is_macos) "darwin" else ISABELLE_PLATFORM_FAMILY |
62 def os_name: String = if (is_macos) "darwin" else ISABELLE_PLATFORM_FAMILY |