diff --git a/build.gradle.kts b/build.gradle.kts index aab8a6b..9e4af5e 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -24,6 +24,7 @@ group = "com.jetpackduba" version = projectVersion val isLinuxAarch64 = (properties.getOrDefault("isLinuxAarch64", "false") as String).toBoolean() +val useCross = (properties.getOrDefault("useCross", "false") as String).toBoolean() sourceSets.getByName("main") { @@ -220,7 +221,7 @@ fun generateKotlinFromUdl() { fun buildRust() { exec { println("Build rs called") - val binary = if (currentOs() == OS.LINUX) { + val binary = if (currentOs() == OS.LINUX && useCross) { "cross" } else { "cargo" diff --git a/gradle.properties b/gradle.properties index 445ae2e..3fc1414 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,3 @@ kotlin.code.style=official -isLinuxAarch64=false \ No newline at end of file +isLinuxAarch64=false +useCross=false \ No newline at end of file