KPM: don't compile single-platform Native fragments to metadata KLIBs
This commit is contained in:
+1
-1
@@ -159,7 +159,7 @@ internal open class KotlinNativeFragmentMetadataCompilationDataImpl(
|
||||
get() = lowerCamelCaseName("compile", fragment.disambiguateName(""), "KotlinNativeMetadata")
|
||||
|
||||
override val isActive: Boolean
|
||||
get() = fragment.isNativeShared()
|
||||
get() = fragment.isNativeShared() && fragment.containingModule.variantsContainingFragment(fragment).count() > 1
|
||||
|
||||
override val kotlinOptions: NativeCompileOptions = NativeCompileOptions { languageSettings }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user