Matt Nelson
12/18/2023, 3:19 PMiOS
, tvOS
and watchOS
. Are the iosX64
, tvosX64
and watchosX64
multiplatform targets for the simulator?
e.g., iPhoneOS17.0.sdk
only supports arm64
, where as iPhoneSimulator.sdk
supports x86_64
and arm64
Matt Nelson
12/18/2023, 3:22 PMiosX64
target is adding -isysroot /path/to/iPhoneSimulator.sdk
or -isysroot /path/to/iPhoneOS.sdk
, so... sort of at my wits end with it.
cc @russhwolfOleg Yukhnevich
12/18/2023, 3:36 PM*X64
are simulators
And AFAIK, for simulator iPhoneSimulator.sdk
is used
You can take a closer look on some of the clang parameters which are passed from K/N here (I've taken them from how `cinterop`/`clang` is invoked in K/N):
• arguments: https://github.com/whyoleg/ffi-kotlin/blob/f55aab4b7026175f8fa0a45f90e5ce0a9736e83[…]cx/compiler-runner/src/commonMain/kotlin/CxCompilerArguments.kt
• examples for paths: https://github.com/whyoleg/ffi-kotlin/blob/f55aab4b7026175f8fa0a45f90e5ce0a9736e83[…]/cx/compiler-test-support/src/commonMain/kotlin/dependencies.kt
And regarding the mapping: here is mapping from KonanTarget
names (directly translatable to gradle dsl naming) and unambiguous one which explicitly mention
hope this helps a bit 🙂russhwolf
12/18/2023, 6:04 PMMatt Nelson
12/18/2023, 6:31 PMWas there a question for me in this? I'm not clear why you called me out.Yeah sorry, you were the first person I thought of for help 😂 @Oleg Yukhnevich answered it though, thanks!
Oleg Yukhnevich
12/18/2023, 6:36 PM