Skip to content

Commit 3801d2c

Browse files
committed
only configure mingw def file if we're building K/N
1 parent 9428a7d commit 3801d2c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

runtime/runtime-core/build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* SPDX-License-Identifier: Apache-2.0
44
*/
55

6+
import aws.sdk.kotlin.gradle.kmp.NATIVE_ENABLED
67
import aws.sdk.kotlin.gradle.util.typedProp
78
import org.jetbrains.kotlin.konan.target.HostManager
89
import java.nio.file.Files
@@ -63,7 +64,7 @@ kotlin {
6364
}
6465
}
6566

66-
if (HostManager.hostIsMingw) {
67+
if (NATIVE_ENABLED && HostManager.hostIsMingw) {
6768
mingwX64 {
6869
val mingwHome = findMingwHome()
6970
val defPath = layout.buildDirectory.file("cinterop/winver.def")

0 commit comments

Comments
 (0)