Commit 9cc5261a authored by Nikolay Igotti's avatar Nikolay Igotti

Fix build.

parent 09d1b61f
......@@ -23,7 +23,7 @@ if (osName == "Mac OS X") {
} else if (osName.startsWith("Linux")) {
targetOs = "linux"
} else {
throw Error("Unsupported OS: $os")
throw Error("Unsupported OS: $osName")
}
def osArch = System.getProperty("os.arch")
def targetArch = ""
......
......@@ -27,11 +27,9 @@ val hostOs by lazy {
}
val hostArch by lazy {
val osArch = System.getProperty("os.arch").also {
println("arch is $it")
}
val osArch = System.getProperty("os.arch")
when (osArch) {
"x86_64" -> Arch.X64
"x86_64", "amd64" -> Arch.X64
"aarch64" -> Arch.Arm64
else -> throw Error("Unknown arch $osArch")
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment