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

Fix build.

parent 09d1b61f
...@@ -23,7 +23,7 @@ if (osName == "Mac OS X") { ...@@ -23,7 +23,7 @@ if (osName == "Mac OS X") {
} else if (osName.startsWith("Linux")) { } else if (osName.startsWith("Linux")) {
targetOs = "linux" targetOs = "linux"
} else { } else {
throw Error("Unsupported OS: $os") throw Error("Unsupported OS: $osName")
} }
def osArch = System.getProperty("os.arch") def osArch = System.getProperty("os.arch")
def targetArch = "" def targetArch = ""
......
...@@ -27,11 +27,9 @@ val hostOs by lazy { ...@@ -27,11 +27,9 @@ val hostOs by lazy {
} }
val hostArch by lazy { val hostArch by lazy {
val osArch = System.getProperty("os.arch").also { val osArch = System.getProperty("os.arch")
println("arch is $it")
}
when (osArch) { when (osArch) {
"x86_64" -> Arch.X64 "x86_64", "amd64" -> Arch.X64
"aarch64" -> Arch.Arm64 "aarch64" -> Arch.Arm64
else -> throw Error("Unknown arch $osArch") 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