File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
build-support/src/main/kotlin/aws/sdk/kotlin/gradle/crt Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import org.gradle.api.tasks.Delete
1010import org.gradle.api.tasks.TaskProvider
1111import org.gradle.kotlin.dsl.named
1212import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
13+ import org.jetbrains.kotlin.konan.target.Family
1314import org.jetbrains.kotlin.konan.target.HostManager
1415import org.jetbrains.kotlin.konan.target.KonanTarget
1516
@@ -122,6 +123,10 @@ private fun Project.registerCmakeConfigureTask(
122123 }
123124 }
124125
126+ if (HostManager .hostIsMingw && knTarget.konanTarget.family == Family .MINGW ) {
127+ args.add(" -G \" MinGW Makefiles\" " )
128+ }
129+
125130 // FIXME? Compiling s2n-tls on GitHub Actions Ubuntu image (without Docker / cross-compilation) has errors like:
126131 // In function ‘s2n_hash_algorithms_init’
127132 // error: implicit declaration of function ‘EVP_MD_free’;
You can’t perform that action at this time.
0 commit comments