So, compiling some native C code wanting to includ...
# kotlin-native
m
So, compiling some native C code wanting to include the static lib for
iOS
,
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
Looking through the multiplatform plugin code and it is not clear to me if the
iosX64
target is adding
-isysroot /path/to/iPhoneSimulator.sdk
or
-isysroot /path/to/iPhoneOS.sdk
, so... sort of at my wits end with it. cc @russhwolf
o
Yes, all of the
*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 🙂
❤️ 1
🙌 1
r
Was there a question for me in this? I'm not clear why you called me out.
m
Was 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!
o
for future: better not to mention someone explicitly - if someone is whiling to help / know how to help - they will help though, you can try to mention someone related to the development of some library/open-source project if you don't have answer from others after sometime
👍 1