jessewilson
07/14/2025, 2:16 PM> Task :zipline:iosX64Quickjs FAILED
In file included from /Volumes/Development/zipline/zipline/native/quickjs/quickjs.c:34:
/Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.5.sdk/usr/include/math.h:619:27: error: _Float16 is not supported on this target
extern _Float16 __fabsf16(_Float16) __API_AVAILABLE(macos(15.0), ios(18.0), watchos(11.0), tvos(18.0));
^
I tracked it down thanks to this bug. The fix was straightforward, once I figured out where to put it:
cklib {
config.kotlinVersion = libs.versions.kotlin.get()
create("quickjs") {
language = C
srcDirs = project.files(file("native/quickjs"), file("native/common"))
compilerArgs.addAll(
listOf(
...
"-D_Float16=short", // KT-69094
)
)
}
}