Paul Woitaschek
03/05/2021, 6:03 AM...
object WATCHOS_ARM32 : KonanTarget("watchos_arm32", Family.WATCHOS, Architecture.ARM32)
object WATCHOS_ARM64 : KonanTarget("watchos_arm64", Family.WATCHOS, Architecture.ARM64)
...
And this https://github.com/JetBrains/kotlin/blob/06498c0efdb218da4bd1b09b6ae0b98beb8b7af9/native/utils/src/org/jetbrains/kotlin/konan/target/Architecture.kt
enum class Architecture(val bitness: Int) {
...
ARM64(64),
ARM32(32)
,...
}
watchosarm32 is 32 bit and watchosarm64 is 64 bit.
However when I now take a look at my watchosArm32Main
source set, for example NSDateComponents
have `NSInteger`s which will be interpreted as kotlin ints.
Makes sense to me.
Now however in watchosArm64Main
it’s also an Int. Why is that? Why isn’t this now a Long
?
Apparently all ios source sets have longs, all watchos source sets have ints. I thought this is dependent on the bitness?sergey.bogolepov
03/05/2021, 6:27 AMInt
instead of Long
on watchosArm64
.Paul Woitaschek
03/05/2021, 7:01 AMPaul Woitaschek
03/05/2021, 7:02 AM