Hi! Is there a way to specify target platform for ...
# kotlin-native
r
Hi! Is there a way to specify target platform for static libraries linkage in cinterop file? Tried to write
staticLibraries.targetName = path/to/static/lib
(i.e. mac_x64) but that didn’t work out, ld reported that
Undefined symbols for architecture x86_64
. Without specification of target everything compiles, but I need to link that library on several platform and kinda don’t want to create cinterop file for each target
n
Agree, this would be very helpful. Currently I had to use different def files.
r
So that solution will work for compilation of, for example, mac, linux and android without linkage errors?