crypto module should only define js jvm and linux when running on 64bit linux

This commit is contained in:
Ugljesa Jovanovic 2020-06-01 13:00:07 +02:00 committed by Ugljesa Jovanovic
parent bf72118d0b
commit 89c3085139
No known key found for this signature in database
GPG Key ID: 178E6DFCECCB0E0F

View File

@ -47,17 +47,9 @@ version = ReleaseInfo.version
val ideaActive = System.getProperty("idea.active") == "true"
fun getHostOsName(): String {
val target = System.getProperty("os.name")
if (target == "Linux") return "linux"
if (target.startsWith("Windows")) return "windows"
if (target.startsWith("Mac")) return "macos"
return "unknown"
}
kotlin {
val hostOsName = getHostOsName()
if (hostOsName == "linux") {
runningOnLinuxx86_64 {
jvm()
js {
compilations {