Is there a way to use the bundled native compiler ...
# multiplatform
m
Is there a way to use the bundled native compiler to compile a support library easily for all native targets? I tried doing
Copy code
val cppSource = projectDir.resolve("src/lib/cpp").listFiles().map { it.absolutePath }
                    cppSource.forEach {
                        extraOpts("-Xcompile-source", it)
                    }
but now by gradle build just exits without an error.
o
there is
internal
API to access K/N toolchain in KGP 🙂 you can take a look on how to generally call it here, with specific example of jni task and task configuration Once more, it’s
internal
API
m
I found -Xcompile-source in the docs instead 🙂 I am running into issues with certain headers not existing on macos though...