crypto module should only define js jvm and linux when running on 64bit linux
This commit is contained in:
parent
bf72118d0b
commit
89c3085139
@ -47,17 +47,9 @@ version = ReleaseInfo.version
|
|||||||
|
|
||||||
val ideaActive = System.getProperty("idea.active") == "true"
|
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 {
|
kotlin {
|
||||||
val hostOsName = getHostOsName()
|
val hostOsName = getHostOsName()
|
||||||
if (hostOsName == "linux") {
|
runningOnLinuxx86_64 {
|
||||||
jvm()
|
jvm()
|
||||||
js {
|
js {
|
||||||
compilations {
|
compilations {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user