233b01f341
Add a wrapper around cinterop invocation that tracks exceptions. Wrapper has a set of handlers. Each handler checks exception for some pattern and if it matches, throws another exception with a more user-friendly message. The first such case is compilation error due to missing -fmodules flag.
Kotlin-native interop
Usage
Create file ../gradle.properties with contents:
llvmInstallPath=/path/to/llvm
Create a Gradle subproject somewhere under ../, using ../InteropExample as a template.
To generate the interop stubs and libraries and build all sources you can run
the following command from ../:
./gradlew InteropExample:build
To run the example (if 'application' plugin is enabled):
./gradlew InteropExample:run