Commit Graph

23 Commits

Author SHA1 Message Date
Svyatoslav Scherbina 27904c0fb9 Native compiler source: replace inline classes by value classes
The former are deprecated.
2021-03-05 12:15:22 +00:00
Vasily Levchenko 905c0c3dd3 [build] version of kotlin native stored in resouces 2021-02-26 12:51:51 +01:00
Vasily Levchenko 65dd798818 [build][native support] intoduced new native support. 2021-02-24 11:07:18 +01:00
Vasily Levchenko 7b73917217 [build][dist] global dist fixed 2021-02-24 11:07:17 +01:00
Vasily Levchenko 3867cf6ef5 [build] switch to kotlin-build-gradle-plugin:0.0.25 2021-02-24 11:07:14 +01:00
Vasily Levchenko 840c1e612c [build] joint (step 2)
- dist:
  - compiler
  - tools(cinterop,klib)
  - stdlib
  - cache
2021-02-24 11:07:13 +01:00
Vasily Levchenko c85c3ac123 [build] joint (step 1)
(cherry picked from commit 7d0775f7e69ab900200bcf1fa78b94d68e6bd4f6)
2021-02-24 11:04:59 +01:00
Svyatoslav Scherbina f766a3eae4 Optimize CPointer.toKStringFromUtf8 on Native
Use strlen and stop allocating intermediate ByteArray
to make the performance comparable to ByteArray.decodeToString().

Partially fix KT-44357.
2021-02-24 10:53:42 +01:00
SvyatoslavScherbina bea8edb10c Return old behaviour for cinterop -output argument suffix handling
(accidentally changed in 976a9fc1)

 #KT-44824 Fixed.
2021-02-24 10:53:42 +01:00
Sergey Bogolepov f6f050ff68 Fix KT-44295
builtins "header" is included in both builtin and posix platform libraries, but only posix has declarations for builtin structs (e.g. __va_list_tag). Library resolver by default has no guarantee on order of resolved libraries which causes KT-44295.
To make results of `KotlinLibraryResolver` stable we pass TopologicalLibraryOrder to `getFullList` and specify a dependency of builtin on posix
2021-02-15 10:16:10 +01:00
Sergey Bogolepov fddf28ac47 Support for macos_arm64 target in backend
(cherry picked from commit 82775e93c1389f21f9be97bd0edfd16dd50300ea)
2021-02-09 09:00:48 +01:00
LepilkinaElena 2331475776 Use klib prefix for temporary directory for klibs (#4686) 2021-02-09 09:00:48 +01:00
Vasily Levchenko 40959c756d Revert "Temporary remove all -Werror flags"
This reverts commit 89c09214eeed951684405c10c233304834a89beb.
2021-02-01 16:54:15 +01:00
Dmitriy Novozhilov 29f68fe7ae Temporary remove all -Werror flags
This is needed for transational period of migrating kotlin repository to compiler with version 1.5

(cherry picked from commit 2836a17952dd47b5b8fe176a0b0374c23567b2ff)
2021-02-01 16:54:15 +01:00
Vasily Levchenko 8b2f0d644b [build] kotlin.*Compile: -Xskip-prerelease-check
(cherry picked from commit 57172ac6ead928b565fefaf49d8405a07c856e25)
2021-02-01 16:54:15 +01:00
Roman Artemev fde107b181 [KLIB] Adapt new klib io API in K/N
(cherry picked from commit 70fabb6a9db83db5f5b26b54f2656655316ea31c)
2021-02-01 16:54:15 +01:00
Elena Lepilkina f88d38314e Rework usage of Choice options 2020-12-14 15:25:36 +01:00
Igor Chevdar e5f7cef594 [interop] Optimized unmanaged memory alloc/free 2020-11-28 21:12:15 +01:00
Dmitriy Dolovov 2953fb3970 Fix lost nullability in C-interop type aliases
^KT-43427
2020-11-28 21:07:01 +01:00
Ilya Gorbunov bf4e53ae06 Use Files API for creating temp files and directories
(cherry picked from commit b9df8591d043c79f2032b782efc7539c747c2625)
2020-11-28 21:01:56 +01:00
Igor Chevdar f8b4db21aa Merge pull request #4496 from JetBrains/small_backend_optimizations
Small backend optimizations
2020-11-28 20:57:39 +01:00
Campbell Jones 4c9bbe54d4 Improve compatibility with newer GCC+Clang, resolve some warnings 2020-11-28 20:53:03 +01:00
Stanislav Erokhin f624800b84 Move everything under kotlin-native folder
I was forced to manually do update the following files, because otherwise
they would be ignored according .gitignore settings. Probably they
should be deleted from repo.

Interop/.idea/compiler.xml
Interop/.idea/gradle.xml
Interop/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_runtime_1_0_3.xml
Interop/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_stdlib_1_0_3.xml
Interop/.idea/modules.xml
Interop/.idea/modules/Indexer/Indexer.iml
Interop/.idea/modules/Runtime/Runtime.iml
Interop/.idea/modules/StubGenerator/StubGenerator.iml
backend.native/backend.native.iml
backend.native/bc.frontend/bc.frontend.iml
backend.native/cli.bc/cli.bc.iml
backend.native/cli.bc/src/org/jetbrains/kotlin/cli/bc/K2Native.kt
backend.native/cli.bc/src/org/jetbrains/kotlin/cli/bc/K2NativeCompilerArguments.kt
backend.native/tests/link/lib/foo.kt
backend.native/tests/link/lib/foo2.kt
backend.native/tests/teamcity-test.property
2020-10-27 21:00:28 +03:00