Is there a way to use the bundled native compiler to compile a support library easily for all native...
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...