Am I correct that the `KotlinMetadataTarget` has a...
# multiplatform
m
Am I correct that the
KotlinMetadataTarget
has a compilation for each "shared sourceSet" ?
a
Kinda. It has for each "shared sourceSet" only if this "shared sourceSet" is used by at least two different non-native targets. If a "shared sourceSet" is used by two let's say
linuxX64
targets then it would have
KotlinMetadataTarget
compilation for it. But not between two
jvm
s. This is what I remember from the top of my head, if you have a more specific question I'll be happy to help you.
👍 1
m
Gotcha, thanks, this is what I was expecting
Mmm actually not exactly, I was expecting two different native targets to also create a compilation? Like I have
appleMain
used by
macosArm64
and
iosArm64
(and others...)
a
yeah sorry for my language, two different native targets would also create such a compilation.
m
Gotcha, makes sense 👍
a
So the table is like this: same native -> different native -> different targets (in any combination) -> same non-native targets -> no red
🙏 1
m
Opened this: https://github.com/cashapp/sqldelight/pull/3246 I think it's simpler but maybe there are a few edges cases