Skip to content

Commit 326ddca

Browse files
committed
Another function was missing
1 parent 4f4f2d3 commit 326ddca

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

aws-crt-kotlin/build.gradle.kts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,3 +223,12 @@ private val KotlinNativeTarget.isBuildableOnHost: Boolean
223223
throw Exception("Unsupported host: ${HostManager.host}")
224224
}
225225
}
226+
227+
private fun findMingwHome(): String =
228+
System.getenv("MINGW_PREFIX")?.takeUnless { it.isBlank() }
229+
?: typedProp("mingw.prefix")
230+
?: throw IllegalStateException(
231+
"Cannot determine MinGW prefix location. Please verify MinGW is installed correctly " +
232+
"and that either the `MINGW_PREFIX` environment variable or the `mingw.prefix` Gradle property is set.",
233+
)
234+

0 commit comments

Comments
 (0)