Skip to content

Commit c427c73

Browse files
committed
Revert cross-compile changes
1 parent 53bed7b commit c427c73

File tree

1 file changed

+1
-2
lines changed
  • build-support/src/main/kotlin/aws/sdk/kotlin/gradle/crt

1 file changed

+1
-2
lines changed

build-support/src/main/kotlin/aws/sdk/kotlin/gradle/crt/CMakeTasks.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,7 @@ private fun runCmake(project: Project, target: KotlinNativeTarget, cmakeArgs: Li
214214
workingDir(project.rootDir)
215215
val exeArgs = cmakeArgs.toMutableList()
216216
val exeName = when {
217-
// Only cross-compile on non-Linux hosts
218-
!HostManager.hostIsLinux && target.konanTarget in crossCompileTargets -> {
217+
target.konanTarget in crossCompileTargets -> {
219218
// cross compiling via dockcross - set the docker exe to cmake
220219
val containerScriptArgs = listOf("--args", "--pull=missing", "--", "cmake")
221220
exeArgs.addAll(0, containerScriptArgs)

0 commit comments

Comments
 (0)