[kotlin compiler][update] 1.3.70-dev-1004 *bffcf8478e- (tag: build-1.3.70-dev-1004) 193: Fix outdated gradle plugin id (5 hours ago) <Florian Kistner> *01d3b8d9c4- (tag: build-1.3.70-dev-995) Store mute tests database in the code instead of build server (8 hours ago) <Nikolay Krasko> *edc1fa3ae8- Change version to the stable one to avoid downloading from teamcity (8 hours ago) <Nikolay Krasko> *3643ae4765- Update 193 to more recent 193.4778.7-EAP (8 hours ago) <Nikolay Krasko> *810e1973f6- 193: Mute multiline enter tests in 193 (KT-34566) (8 hours ago) <Nikolay Krasko> *697d3a0e5a- 193: Mute scripting test in 193 (KT-34541) (8 hours ago) <Nikolay Krasko> *8563614b69- 193: Mute navigation tests in 193 (KT-34542) (8 hours ago) <Nikolay Krasko> *3e7767f096- Fix compilation on 193 and clean up other warnings (8 hours ago) <Nikolay Krasko> *7b0f03cc1c- (tag: build-1.3.70-dev-989) [IR] Made IR validator weaker during validating IrConstNull (9 hours ago) <Igor Chevdar> *f413da3e58- Turned off test for native It fixes current JVM BE behavior but seems like this should've been a FE error. (9 hours ago) <Igor Chevdar> *b63f9176a3- (tag: build-1.3.70-dev-987) JVM_IR: repair overriddenSymbols in InterfaceDelegationLowering (10 hours ago) <Georgy Bronnikov> *c127cbaa6a- (tag: build-1.3.70-dev-985) [Gradle, JS] Fix stack trace for inner classes (10 hours ago) <Ilya Goncharov> *88dd8f663c- (tag: build-1.3.70-dev-972) JVM_IR: Do not generate null checks for suspend function views. (2 days ago) <Mads Ager> *03c7f4bf00- (tag: build-1.3.70-dev-971) Wrap KtClassOrObject.isLocal, KtFile.isScript with runReadAction in LightClasses (2 days ago) <Vladimir Dolzhenko> *00055fc20a- (tag: build-1.3.70-dev-967) Wrap KtClassOrObject.isLocal, KtFile.isScript with runReadAction in LightClasses (2 days ago) <Vladimir Dolzhenko> *96768cbf2d- (tag: build-1.3.70-dev-965) Clean up after acquire lock for several seconds to create LightClasses to workaround dead-lock over resolve (3 days ago) <Vladimir Dolzhenko> *28e34f5175- (tag: build-1.3.70-dev-962) Build: Exclude kotlin-stdlib-common from kotlin-osgi-bundle (3 days ago) <Vyacheslav Gerasimov> *dac0fc7397- (tag: build-1.3.70-dev-961) Remove obsolete assertion in ExpressionCodegen (3 days ago) <Alexander Udalov> *e7fe144f5c- Minor, fix markdown rendering in GenerateGradleOptions (3 days ago) <Alexander Udalov> *f248e4a2ee- Update CLI test data and Gradle option descriptions (3 days ago) <Alexander Udalov> *c6f54b6412- Improve descriptions of compiler options (3 days ago) <Pavel Semyonov> *87b88a738e- (tag: build-1.3.70-dev-959) [Minor] Update test data for NI (3 days ago) <Pavel Kirpichenkov> *1b96e14b1e- (tag: build-1.3.70-dev-948) Remove reference to temporary thread local explicitly (KT-28940) (3 days ago) <Nikolay Krasko> *588218658c- (tag: build-1.3.70-dev-943) [NI] Fix ambiguity for extension functions with exact transient receiver (3 days ago) <Mikhail Zarechenskiy> *eb3f50dce7- (tag: build-1.3.70-dev-938) Revert "Fix readAccess in IDELightClassGenerationSupport on obtaining script" (3 days ago) <Vladimir Dolzhenko> *210c354ae5- (tag: build-1.3.70-dev-936) Fir2Ir: Set initializers for temporary variables (3 days ago) <Steven Schäfer> *cf61957e3c- (tag: build-1.3.70-dev-931, tag: build-1.3.70-dev-925) Minor, fix kotlinx-serialization bytecode test data (3 days ago) <Alexander Udalov> *c21e699783- (tag: build-1.3.70-dev-924) Fix default type of static classes inside parametrized parents (3 days ago) <Pavel Kirpichenkov> *905823fb1d- (tag: build-1.3.70-dev-918) Fix: Notify user in IDE on K/N KLIBs with incompatible ABI version (4 days ago) <Dmitriy Dolovov> *8ffc58a77d- Fix: Don't index and decompile incompatible .knm files from K/N KLIBs (4 days ago) <Dmitriy Dolovov> *9c887c1e79- Fix: Don't analyse incompatible K/N KLIBs in IDE (4 days ago) <Dmitriy Dolovov> *b1d7df697d- (tag: build-1.3.70-dev-916) Build: Add dependency on gradle plugin to android-extensions-idea module (4 days ago) <Vyacheslav Gerasimov> *e096691bd8- (tag: build-1.3.70-dev-910) Build: Add dependency on gradle plugin to idea-android module (4 days ago) <Vyacheslav Gerasimov> *52febbcc07- (tag: build-1.3.70-dev-908) [JVM_IR] Support default interface suspend functions. (4 days ago) <Mads Ager> *d16a1b14d8- (tag: build-1.3.70-dev-906) Acquire lock for several seconds to create LightClasses to workaround dead-lock over resolve (4 days ago) <Vladimir Dolzhenko> *c676a30919- (tag: build-1.3.70-dev-904, tag: build-1.3.70-dev-903) Minor, clarify comment on SafePublicationLazyImpl.final (4 days ago) <Alexander Udalov> *c24f2d06d4- Mark value fields in ReflectProperties as volatile (4 days ago) <Alexander Udalov> *8af3b3e51e- [Backend] Reorganize version 1.0 codegen tests (4 days ago) <Kristoffer Andersen> *38ea5a85a3- (tag: build-1.3.70-dev-897) Build: Add maven publication for Kotlin plugin artifacts (4 days ago) <Vyacheslav Gerasimov> *c1cb6da436- (tag: build-1.3.70-dev-892) Use stable compiler option for enabling progressive mode (4 days ago) <Ilya Gorbunov> *59482f6827- Do not blank opt in for allowing kotlin package in all subprojects (4 days ago) <Ilya Gorbunov> *5c9cbf7e77- (tag: build-1.3.70-dev-891) allow relative friend paths matching relative classpaths (4 days ago) <Kevin Bierhoff> *68deedb589- (tag: build-1.3.70-dev-888) Kapt: Register AP options as inputs in worker mode as it done with kotlinc compiler plugin mode (4 days ago) <Yan Zhulanow> *958e6623fc- Kapt: Enable worker API mode by default (KT-32832) (4 days ago) <Yan Zhulanow> *68723125f2- Clean up KAPT incremental tests (4 days ago) <Ivan Gavrilovic> *7fc25a9c04- Pill: Add GenerateRuntimeDescriptorTests to the "Generate all tests" run configuration (KT-34494) (4 days ago) <Yan Zhulanow> *2cb055a3bd- Debugger: Log evaluation status from Java contexts (4 days ago) <Yan Zhulanow> *6bf15b6d37- Kapt: Generate constant value initializers for mutable properties (KT-30164, KT-29355) (4 days ago) <Yan Zhulanow> *9edd4554a9- Kapt: Support @Deprecated annotations (KT-30368) (4 days ago) <Yan Zhulanow> *1309c0c67a- An attempt to fix flaky debugger tests (4 days ago) <Yan Zhulanow> *bf027fb824- Do not show Smart Step Into targets for @InlineOnly callables (KT-33728) (4 days ago) <Yan Zhulanow> *ff7f1c62a9- Minor: Refactor KotlinMethodStepTarget a bit (4 days ago) <Yan Zhulanow> *87e0a2d98c- Debugger: Fix evaluation of function declarations with expression bodies (KT-32704) (4 days ago) <Yan Zhulanow> *fa45122c6b- Minor: Fix warnings in KtCodeFragment (4 days ago) <Yan Zhulanow> *716c9f79f7- Debugger: Do not use expression code fragments for evaluator (KT-32736, KT-32741) (4 days ago) <Yan Zhulanow> *39662c09e9- Debugger: Fix breakpoints and stepping on a first line (KT-33304) (4 days ago) <Yan Zhulanow> *c3e46ebe5c- Debugger: Search candidates for smart step into in a read action (4 days ago) <Yan Zhulanow> *9cc7ff0efc- Debugger: Fix "smart step into" for library declarations (KT-33303) (4 days ago) <Yan Zhulanow> *c6a5733b3d- Debugger: Move 'smart step into' classes to the 'smartStepInto' package (4 days ago) <Yan Zhulanow> *d2b058c1e5- Debugger: Extract Smart step visitor (4 days ago) <Yan Zhulanow> *8325216d38- Debugger: Fix "Step over" with inline function calls in non-functions (KT-20342) (4 days ago) <Yan Zhulanow> *7bd628f989- Debugger: Check max document index before figuring out line offsets (4 days ago) <Yan Zhulanow> *d7eb0f4bb0- Debugger: Cleanup stepping code (4 days ago) <Yan Zhulanow> *00a06ef9b9- Debugger: Move "Show Kotlin variables" check button to the Debugger settings menu (KT-30909) (4 days ago) <Yan Zhulanow> *f93549748a- Fix a number of compiler/IDE warnings in IDE and kapt modules (4 days ago) <Yan Zhulanow> *9fb622e148- Debugger: Do not disable breakpoints on evaluation (KT-12242) (4 days ago) <Yan Zhulanow> *d46510897b- (tag: build-1.3.70-dev-887) [Gradle, JS] Refactor and extract team city formatting in separate file (4 days ago) <Ilya Goncharov> *7f49caf503- [Gradle, JS] Depends node test on our own mocha reporter (4 days ago) <Ilya Goncharov> *e69ff4363f- [Gradle, JS] Copy mocha-teamcity-reporter with licensies (4 days ago) <Ilya Goncharov> *1ad8ecabfd- [Gradle, JS] Fully copy of karma-teamcity-reporter (remove npm dependency on it) (4 days ago) <Ilya Goncharov> *0c911f4359- (tag: build-1.3.70-dev-886) [Gradle, JS] Fix module.exports for adapter and modulization (4 days ago) <Ilya Goncharov> *5e2b594638- (tag: build-1.3.70-dev-881) FirBodyResolveTransformerAdapters: optimize imports (4 days ago) <Mikhail Glukhikh> *e14b63dfe1- FIR Java enhancement: get rid of FirAnnotationCall.resolvedFqName (4 days ago) <Mikhail Glukhikh> *be6100527b- FIR Java enhancement: fix JVM signature generation for type parameters (4 days ago) <Mikhail Glukhikh> *47cf7373af- Add extra tests for FIR J/K type mapping (4 days ago) <Mikhail Glukhikh> *dc657dfda5- FIR Java refactoring: calculate JVM signatures directly by Java types (4 days ago) <Mikhail Glukhikh> *6250f1a042- (tag: build-1.3.70-dev-878) Detects main method with argument Array<String?> (4 days ago) <Vladimir Dolzhenko> *cb3d027463- (tag: build-1.3.70-dev-864) Fix typo in file name (5 days ago) <Mikhail Glukhikh> *f63c3aeac9- (tag: build-1.3.70-dev-861) Extract FirMemberScopeProvider to a separate file (5 days ago) <Mikhail Glukhikh> *b86f529a8a- Minor: add a pair of TODO about FIR scopes (5 days ago) <Mikhail Glukhikh> *e28d41aa61- FIR supertype resolve: decrease priority of type parameter scope (5 days ago) <Mikhail Glukhikh> *634f324f51- FIR supertype resolve: generate error types for type parameters (5 days ago) <Mikhail Glukhikh> *15a8da5f7b- Rename: Fir...UseSiteScope -> Fir...UseSiteMemberScope (5 days ago) <Mikhail Glukhikh> *bb60a8f334- Code cleanup: get rid of FirPosition (5 days ago) <Mikhail Glukhikh> *374c3b4561- Cache FirSelfImportingScope and callables inside (5 days ago) <Mikhail Glukhikh> *f136813059- Return "lazy" kind of nested classifier scope for special cases (5 days ago) <Mikhail Glukhikh> *bf75274053- Organize FirClassDeclaredMemberScope & FirNestedClassifierScope in the similar way (5 days ago) <Mikhail Glukhikh> *17b966daaa- Unify API of FirScope.processClassifiersByName (use ProcessorAction) (5 days ago) <Mikhail Glukhikh> *d886d48cf0- (tag: build-1.3.70-dev-860) Record resolution results for ambiguous callable references (5 days ago) <Pavel Kirpichenkov> *352a4dc836- (tag: build-1.3.70-dev-858) Added extension points to the second compiler.xml (5 days ago) <Stanislav Erokhin> *2dfe3c568d- (tag: build-1.3.70-dev-856) Copy refactoring update kotlin packages on target files (5 days ago) <Igor Yakovlev> *59a6f03a47- Copy refactoring refactoring (5 days ago) <Igor Yakovlev> *072b67442f- (tag: build-1.3.70-dev-851) Detects main method with argument Array<String?> (5 days ago) <Vladimir Dolzhenko> *474645f04f- (tag: build-1.3.70-dev-849) idea-core: fix compatibility of `insertMembersAfter` function (5 days ago) <Dmitry Gridin> *45de26763a- (tag: build-1.3.70-dev-847) [FIR] Fix import broken in93a3c232(5 days ago) <Dmitriy Novozhilov> *93a3c23292- (tag: build-1.3.70-dev-844) [FIR] Split `FirBodyResolveTransformer` to separate transformers (5 days ago) <Dmitriy Novozhilov> *a1569dfbf0- (tag: build-1.3.70-dev-837) JS IR: fix circular dependencies in Gradle tasks (5 days ago) <Anton Bannykh> *651dd363e3- (tag: build-1.3.70-dev-836) [Gradle, JS] Add timeout property (5 days ago) <Ilya Goncharov> *ebf5e4b590- (tag: build-1.3.70-dev-835) Mute IncrementalJsKlibCompilerRunnerTestGenerated tests (KT-34538) (5 days ago) <Nikolay Krasko> *e1a5a55972- Refactoring: remove ownImports method (5 days ago) <Nikolay Krasko> *6d5dc6ea9a- Allow to auto-generate files for asserting failures (5 days ago) <Nikolay Krasko> *4ed64b0283- Regenerate tests with TargetBackend.ANY remove and using runTest with this (5 days ago) <Nikolay Krasko> *28abfe6dfa- Avoid generating irrelevant imports in test classes (5 days ago) <Nikolay Krasko> *0c5dc507e9- Allow to add additional annotations to generated classes (5 days ago) <Nikolay Krasko> *b885b848f4- Allow to mute test working with directories (5 days ago) <Nikolay Krasko> *f3e5b8c67f- Allow to setup additional extension for mute with annotation (5 days ago) <Nikolay Krasko> *98ac2af402- Use TargetBackend.ANY as default parameter and migrate to more generic runTest method (5 days ago) <Nikolay Krasko> *3891f9fcaa- Refactoring: extract tests files utilities to separate class (5 days ago) <Nikolay Krasko> *2c0ce40f75- Refactoring: extract test dummy traces (5 days ago) <Nikolay Krasko> *fda2022214- Refactoring: extract mutation with file logic to separate file (5 days ago) <Nikolay Krasko> *a9c84299c6- Allow to auto-mute tests with file (5 days ago) <Nikolay Krasko> *e4436c80c4- Refactoring: extract mute with file to the separate method (5 days ago) <Nikolay Krasko> *55acc296a2- (tag: build-1.3.70-dev-833) JVM_IR: never create temporaries in $default stubs (5 days ago) <pyos> *95be7171bc- JVM IR: fix "null" as the first entry in MappedEnumWhenLowering (5 days ago) <Alexander Udalov> *35d7bb4a26- (tag: build-1.3.70-dev-831) Add support for @CompilerOptions annotation for supplying compiler options from scripts. (5 days ago) <Efeturi Money> *8c6916af52- (tag: build-1.3.70-dev-816) JVM_IR inliner fixes: remove code that does nothing (6 days ago) <pyos> *60f4ed914a- (tag: build-1.3.70-dev-804) "Add parameter to function" quick fix: apply for TYPE_MISMATCH error (6 days ago) <Toshiaki Kameyama> *636f5da883- (tag: build-1.3.70-dev-798, tag: build-1.3.70-dev-793) [Minor] Inline and drop reduntant isCallableReflectionType property (6 days ago) <Pavel Kirpichenkov> *02fc921eed- (tag: build-1.3.70-dev-790) Report diagnostics about callable reference resolution ambiguity (6 days ago) <Pavel Kirpichenkov> *138d558f6a- Fix compiler exception during resolution of ambiguous callable references (6 days ago) <Pavel Kirpichenkov> *8b97819c04- (tag: build-1.3.70-dev-789) [JVM_IR] Support suspend functions that can be overriden. (6 days ago) <Mads Ager> *eebb071ae9- (tag: build-1.3.70-dev-788) KT-34509 Properly unwrap callable reference descriptor (6 days ago) <Dmitry Petrov> *7dde503697- KT-34500 Use correct loop parameter type in ForInArrayLoopGenerator (6 days ago) <Dmitry Petrov> *bdc04547cc- (tag: build-1.3.70-dev-784) "Redundant qualifier name": fix false positive with inner class as constructor parameter for outer (7 days ago) <Toshiaki Kameyama> *bc66834c3c- (tag: build-1.3.70-dev-781) Fix UL classes descriptors leaks (7 days ago) <Igor Yakovlev> *b01014982f- Disable new MPP kapt paths importing test in IDEA 183 (7 days ago) <Andrey Uskov> *0188a0923e- Update Kotlin plugin in KaptImportingTests (7 days ago) <Andrey Uskov> *40bb48e19b- Fix actualisation of common source sets when HMPP is disabled (7 days ago) <Andrey Uskov> *847e287bd6- (tag: build-1.3.70-dev-780) JVM_IR: add $assertionsDisabled when an inlined function uses it (7 days ago) <pyos> *e89aabbba1- (tag: build-1.3.70-dev-778) Provide a diagnostic when @Serializable annotation is missing on enum. (7 days ago) <Leonid Startsev> *3c9a02e271- Associate serializers added via @UseSerializers by argument class, not type (7 days ago) <Leonid Startsev> *855a867893- Support sealed, generic and abstract polymorphic inheritors in sealed class serialization (7 days ago) <Leonid Startsev> *1ebc65b8e4- Sealed classes serialization (7 days ago) <Leonid Startsev> *72f8f2b7b5- Custom-serializable enums for IR (7 days ago) <Leonid Startsev> *bd8133e02c- Custom-serializable enums for JS (7 days ago) <Leonid Startsev> *e76ab06029- Custom-serializable enums for JVM (7 days ago) <Leonid Startsev> *e9e7d1479a- Remove redundant additional check for @Polymorphic annotation (7 days ago) <Leonid Startsev> *8a90b82e9b- Object serialization for JVM, JS and Native (7 days ago) <Leonid Startsev> *449c406e24- Redundant visibility modifier: do not report for public modifier that overrides protected setter visibility (7 days ago) <Toshiaki Kameyama> *e8effe6727- Replace with safe call: do not add redundant elvis operator (7 days ago) <Toshiaki Kameyama> *fa0398ffd3- (tag: build-1.3.70-dev-775) Fix readAccess in ScriptExtraImportsProviderExtension on checking isScript (7 days ago) <Vladimir Dolzhenko> *34e941f26f- Render unresolved types in a presentable way in refactorings (7 days ago) <Vladimir Dolzhenko> *7ecaef377f- Fix readAccess in KtFileClassProviderImpl on checking isScript (7 days ago) <Vladimir Dolzhenko> *30229da95a- Don't render pure error types in OverrideMemberChooserObject (7 days ago) <Vladimir Dolzhenko> *148a6bd54d- Fix read action in 'searchReferences' #EA-209421 Fixed (7 days ago) <Vladimir Dolzhenko> *96198a1cd3- Report no parent KtNamedDeclaration for declaration instead of NPE in BindingContextUtils.getEnclosingDescriptor #EA-210816 Fixed (7 days ago) <Vladimir Dolzhenko> *46a083cd1e- Fix readAccess in ResolveSession.java on checking is a local declaration (7 days ago) <Vladimir Dolzhenko> *78527abad9- Fix readAccess in TargetPlatformDetector.java on checking is file a script (7 days ago) <Vladimir Dolzhenko> *15997bf635- Save change script configuration within a transaction (7 days ago) <Vladimir Dolzhenko> *625dbfa699- Fix readAccess in getModuleInfo.kt on obtaining script (7 days ago) <Vladimir Dolzhenko> *ba01678abb- Fix readAccess in IDELightClassGenerationSupport on obtaining script (7 days ago) <Vladimir Dolzhenko> *10ea8abc2b- Wrap file.declarations with runReadAction #EA-209932 Fixed (7 days ago) <Vladimir Dolzhenko> *597e760fab- (tag: build-1.3.70-dev-766) Broght back a condition lost during a refactoring (7 days ago) <Alexander Gorshenev> *2cde7f2402- [KLIB] Fix `explicitlyExported` mode - Refactor deserialization pipeline - Fix K/N test (7 days ago) <Roman Artemev> *43e855150c- [KLIB] Correctly restore top level property order during deserialization - Add test - Fix KT-34273 (7 days ago) <Roman Artemev> *aecd08e562- [Psi2Ir] Fix IrText test generation (7 days ago) <Roman Artemev> *6ddc05a5a8- [Gradle, JS] Fix for wildcard npm dependency version (7 days ago) <Ilya Goncharov> *e17b9097df- [Gradle, JS] Add test on success installation of duplicated dependencies (7 days ago) <Ilya Goncharov> *bdd6186a07- [Gradle, JS] Resolve devDependencies and dependencies modules clash (7 days ago) <Ilya Goncharov> *fa647680d3- [Gradle, JS] Update npm dependencies (7 days ago) <Ilya Goncharov> *2cf79b7502- Check Karma exit code with disabled failOnFailingTestSuite (7 days ago) <Ilya Goncharov> *d902a5f304- Temporary disable assertion in bridges generation (7 days ago) <Denis Zharkov> *28b6913a25- (tag: build-1.3.70-dev-761) JVM IR: Support parameterless main methods (7 days ago) <Kristoffer Andersen> *4b77db8979- (tag: build-1.3.70-dev-756) Fix test to actually fail if expected exception is not thrown. (7 days ago) <Mads Ager> *1a59e41224- (tag: build-1.3.70-dev-754) Add JvmSymbols.String & StringBuilder for FIR mode to fix context initialization (7 days ago) <Mikhail Glukhikh> *0c3dfca6ee- JVM_IR: remove an assertion that triggers due to a frontend bug (7 days ago) <pyos> *e5cc0eec9c- (tag: build-1.3.70-dev-752) 193: Adjust test data for HierarchyTestGenerated tests in 193 (7 days ago) <Nikolay Krasko> *693603db68- 193: Mute join lines tests in 193 (KT-34408) (7 days ago) <Nikolay Krasko> *9665870118- Fix AbstractSmartStepIntoTest tests in 193 (7 days ago) <Nikolay Krasko> *613fbf7a5d- Merge else-if intention (KT-34218) (7 days ago) <DmiitriiJarosh> (cherry picked from commit 114045a3e2d077889f055744a5144ec4f49d1263)
Kotlin/Native
Kotlin/Native is an LLVM backend for the Kotlin compiler, runtime implementation, and native code generation facility using the LLVM toolchain.
Kotlin/Native is primarily designed to allow compilation for platforms where virtual machines are not desirable or possible (such as iOS or embedded targets), or where a developer is willing to produce a reasonably-sized self-contained program without the need to ship an additional execution runtime.
Prerequisites:
- install JDK for your platform, instead of JRE. The build requires
tools.jar, which is not included in JRE; - on macOS install Xcode 11
- on Fedora 26+
yum install ncurses-compat-libsmay be needed - on recent Ubuntu
apt install libncurses5is needed
To compile from sources use following steps:
First, download dependencies:
./gradlew dependencies:update
Then, build the compiler and libraries:
./gradlew bundle
To build with experimental targets support compile with -Porg.jetbrains.kotlin.native.experimentalTargets.
The build can take about an hour on a Macbook Pro. To run a shorter build with only the host compiler and libraries, run:
./gradlew dist distPlatformLibs
To include Kotlin compiler in composite build and build
against it, use the kotlinProjectPath project property:
./gradlew dist -PkotlinProjectPath=path/to/kotlin/project
It's possible to include in a composite build both Kotlin compiler and Kotlin/Native Shared simultaneously.
After that, you should be able to compile your programs like this:
export PATH=./dist/bin:$PATH
kotlinc hello.kt -o hello
For an optimized compilation, use -opt:
kotlinc hello.kt -o hello -opt
For tests, use:
./gradlew backend.native:tests:run
To generate interoperability stubs, create a library definition file
(refer to samples/tetris/.../sdl.def), and run the cinterop tool like this:
cinterop -def lib.def
See the provided samples and INTEROP.md for more details.
The Interop tool generates a library in the .klib library format. See LIBRARIES.md
for more details on this file format.