compilerOpts
The options that are passed to the compiler by the cinterop tool.
Usage example
kotlin {
linuxX64() {
compilations.getByName("main") {
cinterops {
val cinterop by creating {
defFile(project.file("custom.def"))
compilerOpts("-Ipath/to/headers")
}
}
}
}
}
Content copied to clipboard
In the example, the -Ipath/to/headers
compiler option is passed to the cinterop tool.
Parameters
values
compiler options
The options that are passed to the compiler by the cinterop tool.
Usage example
kotlin {
linuxX64() {
compilations.getByName("main") {
cinterops {
val cinterop by creating {
defFile(project.file("custom.def"))
compilerOpts(listOf("-Ipath/to/headers"))
}
}
}
}
}
Content copied to clipboard
In the example, the -Ipath/to/headers
compiler option is passed to the cinterop tool.