7ec167b5ca
This patch adds an ability to download native dependencies (clang, sysroots etc) during execution of the `downloadKonanCompiler` task. The feature can by enabled by setting the `downloadDependencies` property of the `downloadKonanCompiler` task to true. Targets for these dependencies may be specified as a string list using `targets` property of the `downloadKonanCompiler` task.
Concurrent
This example shows how to implement concurrent programming in Kotlin/Native. In this example we start multiple threads running concurrently and exchange messages with them.
To build cpp use ./buildCpp.sh.
To build kotlin native use ../gradlew build or ./build.sh.
To run use ../gradlew run
Alternatively you can run artifact directly
./build/konan/bin/MessageChannel/MessageChannel.kexe
It will print all passed messages.