Adjust CommonizerIT to MinGW cross-compilation
This commit is contained in:
+2
-3
@@ -34,7 +34,6 @@ class CommonizerIT : BaseGradleIT() {
|
|||||||
|
|
||||||
build("commonize", "-Pkotlin.mpp.enableNativeDistributionCommonizationCache=false") {
|
build("commonize", "-Pkotlin.mpp.enableNativeDistributionCommonizationCache=false") {
|
||||||
assertTasksExecuted(":commonizeNativeDistribution")
|
assertTasksExecuted(":commonizeNativeDistribution")
|
||||||
assertContains(DISABLED_NATIVE_TARGETS_REPORTER_WARNING_PREFIX)
|
|
||||||
assertContains(commonizerOutput)
|
assertContains(commonizerOutput)
|
||||||
assertSuccessful()
|
assertSuccessful()
|
||||||
}
|
}
|
||||||
@@ -429,14 +428,14 @@ class CommonizerIT : BaseGradleIT() {
|
|||||||
getCommonizerDependencies("commonTest").assertEmpty()
|
getCommonizerDependencies("commonTest").assertEmpty()
|
||||||
|
|
||||||
getCommonizerDependencies("nativeMain").onlyCInterops().apply {
|
getCommonizerDependencies("nativeMain").onlyCInterops().apply {
|
||||||
assertDependencyFilesMatches(".*nativeHelper", ".*unixHelper".takeIf { isUnix })
|
assertDependencyFilesMatches(".*nativeHelper")
|
||||||
assertTargetOnAllDependencies(
|
assertTargetOnAllDependencies(
|
||||||
CommonizerTarget(IOS_X64, IOS_ARM64, LINUX_X64, LINUX_ARM64, MACOS_X64, MINGW_X64, MINGW_X86)
|
CommonizerTarget(IOS_X64, IOS_ARM64, LINUX_X64, LINUX_ARM64, MACOS_X64, MINGW_X64, MINGW_X86)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
getCommonizerDependencies("nativeTest").onlyCInterops().apply {
|
getCommonizerDependencies("nativeTest").onlyCInterops().apply {
|
||||||
assertDependencyFilesMatches(".*nativeHelper", ".*unixHelper".takeIf { isUnix }, ".*nativeTestHelper")
|
assertDependencyFilesMatches(".*nativeHelper", ".*nativeTestHelper")
|
||||||
assertTargetOnAllDependencies(
|
assertTargetOnAllDependencies(
|
||||||
CommonizerTarget(IOS_X64, IOS_ARM64, LINUX_X64, LINUX_ARM64, MACOS_X64, MINGW_X64, MINGW_X86)
|
CommonizerTarget(IOS_X64, IOS_ARM64, LINUX_X64, LINUX_ARM64, MACOS_X64, MINGW_X64, MINGW_X86)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user