Skip to content

Commit

Permalink
Fix build.
Browse files Browse the repository at this point in the history
  • Loading branch information
olonho committed Nov 18, 2020
1 parent 09d1b61 commit 9cc5261
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion samples/SkijaInjectSample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
Expand Down
6 changes: 2 additions & 4 deletions skiko/buildSrc/src/main/kotlin/properties.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit 9cc5261

Please sign in to comment.