From 89c30851393055cc7cab73d05845ef6f5284f0e3 Mon Sep 17 00:00:00 2001 From: Ugljesa Jovanovic Date: Mon, 1 Jun 2020 13:00:07 +0200 Subject: [PATCH] crypto module should only define js jvm and linux when running on 64bit linux --- multiplatform-crypto/build.gradle.kts | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/multiplatform-crypto/build.gradle.kts b/multiplatform-crypto/build.gradle.kts index 3347c1d..e4b491e 100644 --- a/multiplatform-crypto/build.gradle.kts +++ b/multiplatform-crypto/build.gradle.kts @@ -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 {