fbc14becfc2809ef3e723ef9f49477685aa1b90f
This patch adds 2 helpers to download dependencies for compiler and stub generator during their execution. They take list of external dependencies as a parameter and directory where they must be located. Helpers check if these dependencies exist in the given directory and download not existing ones.
Kotlin-native backend
Download dependencies:
./gradlew dependencies:update
Then build the compiler:
./gradlew dist
After that you should be able to compile your programs like that:
./dist/bin/kotlinc hello.kt -o hello
For an optimized compilation use -opt:
./dist/bin/kotlinc hello.kt -o hello -opt
For some tests, use:
./gradlew backend.native:tests:run
To run blackbox compiler tests from JVM Kotlin use (takes time):
./gradlew run_external
To update the blackbox compiler tests set TeamCity build number in gradle.properties:
testDataVersion=<build number>:id
and run ./gradlew update_external_tests
Description
Languages
Kotlin
79.9%
Java
10.4%
Swift
4.3%
C
2.8%
C++
2.1%
Other
0.3%