Commit Graph

4374 Commits

Author SHA1 Message Date
Igor Chevdar 99d4d93488 Fixed copying of default args of expect functions
Fixes issue https://github.com/JetBrains/kotlin-native/issues/2343
2018-11-22 12:21:46 +03:00
Sergey Bogolepov c29be9c5ee Filter bitcode files by extension when passing them to llvm (#2356) 2018-11-22 11:37:59 +07:00
Igor Chevdar d6091c93a1 Inliner: fixed bug with generic function reference + test
Fixes issue https://github.com/JetBrains/kotlin-native/issues/2336
2018-11-21 18:22:06 +03:00
SvyatoslavScherbina 6fe37a00c5 Make crash with non-converted Kotlin exception debugger-friendly (#2353)
* Use `abort` instead of `exit` to make debugger recognize it as crash
* Terminate from C++ to prevent debugger from showing Kotlin handlers

 #KT-28066 Fixed
2018-11-21 13:34:06 +03:00
Svyatoslav Scherbina f4cf5e842d Uniform alloc and cValue APIs in kotlinx.cinterop
#KT-25628 Fixed
2018-11-21 13:29:08 +03:00
Svyatoslav Scherbina 4cb83cbcc5 Document -o cinterop option
#KT-27881 Fixed
2018-11-21 13:29:08 +03:00
Dmitriy Dolovov dfa82430d5 Samples: libcurl for Windows with dynamic linking (#2348) 2018-11-21 16:35:55 +07:00
Ilya Matveev f68f7028b1 [gradle-plugin] Publish Kotlin metadata variant
Fix for KT-27500.
2018-11-21 11:47:26 +07:00
Ilya Matveev e5ab2c71fb [gradle-plugin] Pass only klib dependencies to the compiler
Fix for KT-28205.
2018-11-21 11:47:26 +07:00
Ilya Matveev 1ec506d0b1 Don't generate functional types for functions with long signatures (#2349)
The K/N stdlib doesn't contain basic classes (e.g. Functon0,
Function1 etc) for functional types with >22 parameters.
So we cannot convert functional pointers with such signatures
into Kotlin functional types and have to replace them with
opaque pointers.

Fix for GitHub issue #2334.
2018-11-21 11:21:37 +07:00
Svyatoslav Scherbina 77897ba712 Make Objective-C objects shareable in Kotlin 2018-11-20 11:01:25 +03:00
Vasily Levchenko df91304d54 [codegen][debug-info] paramter's index begins with 1. 2018-11-19 18:39:52 +03:00
Vasily Levchenko 91463efac8 [kotlin compiler][update] 1.3.20-dev-1845 2018-11-19 15:32:49 +03:00
Nikolay Igotti 3e10e15f97 Sharing the mutable binary data (#2311) 2018-11-19 13:16:39 +03:00
Dmitriy Dolovov 17c0dae0e4 samples: clean-up local .m2 repo on :clean (#2344) 2018-11-19 11:31:54 +07:00
Svyatoslav Scherbina ca32454ba8 Fix backtick-quoting for C function names 2018-11-18 08:16:34 +02:00
Mike Sinkovsky 446442e588 Fix warning when staticLibraries used in .def file (#2342) 2018-11-17 15:57:37 +03:00
Mike Sinkovsky ea4aa57545 Fix build for samples/tetris (#2341) 2018-11-17 14:39:02 +03:00
Dmitriy Dolovov 6095075192 curl sample enhancements (#2332)
* Enable 'curl' in pre-commit tests
* Samples: Use Gradle plugin version 1.3.10
2018-11-16 22:03:04 +07:00
Igor Chevdar ce4315827c Disabled test, it is failing with new inliner
The test reveals some problems with design of inline functions
2018-11-16 15:29:53 +03:00
Igor Chevdar 0c6471b6cd New copier for inliner 2018-11-16 15:29:53 +03:00
Vasily Levchenko a9e5b11550 [kotlin compiler][update] 1.3.20-dev-1768 2018-11-16 15:18:05 +03:00
SvyatoslavScherbina 471771e8b8 KT-28102 fixes (#2325)
* Fix support for C functions returning structs with const fields

 #KT-28065 Fixed

* Improve support for const C globals

Workaround the case when libclang improperly reports
types of const variables as non-const

Partially fixes KT-28102

* Improve support for C functions overloaded by macros

Don't erase pointers to void* in some cases when generating C stubs

Partially fixes KT-28102
2018-11-16 15:14:16 +03:00
Vasily Levchenko 77be16c834 [debugger][lldb] adds command 'print_this' to print '<this>' w/o interacting with C-expression evaluator 2018-11-15 13:25:56 +03:00
Nikolay Igotti 2a65528968 Avoid recursion in GC traversals. (#2322) 2018-11-14 18:50:22 +03:00
Ilya Matveev cd7a377e8f Use publish plugin 0.9.10 2018-11-14 15:13:16 +07:00
Ilya Gorbunov d4db4a75a4 Regex and String extensions: fix modifier order
Remove inline modifier from external functions native(Last)IndexOf.
Make compareToIgnoreCase internal.
2018-11-13 15:28:40 +03:00
Ilya Gorbunov 4861b90faa Update Deprecated annotation docs
To reflect documentation changes in stdlib-common.
2018-11-13 11:59:59 +03:00
Ilya Gorbunov fb79c6af03 Minor: fix doc formatting that caused summary differ in Common and Native 2018-11-13 11:59:59 +03:00
Vasily Levchenko e64594f906 [kotlin compiler][update] 1.3.20-dev-1618 2018-11-13 11:52:30 +03:00
Ilya Gorbunov 7d9ec09c9d Make AbstractMutableCollections satisfy expect declarations from common
- Add actuals to AbstractMutableCollection
- Add hashCode/equals to AbstractMutableSet
- Take implementation of AbstractMutableMap from JS
2018-11-13 11:52:30 +03:00
Nikolay Igotti 91aba74f1d Fix CommonCrypto linkage. 2018-11-09 18:21:38 +03:00
Ilya Matveev d78c1a68a6 Allow overriding Gradle plugin version (#2304) 2018-11-09 10:55:47 +03:00
Pavel Punegov 504c76700f Exclude tests with JVM_TARGET 2018-11-07 19:57:41 +03:00
Igor Chevdar c1a41c9dc4 Fix for https://github.com/JetBrains/kotlin-native/issues/2291 (#2302)
Deallocation hooks might trigger recursive GC - forbid that.
2018-11-07 13:58:32 +03:00
Nikolay Igotti 2a77459f48 Add worker test runner. (#2303) 2018-11-07 12:46:19 +03:00
Vasily Levchenko 15d522c2fe [kotlin compiler][update] 1.3.20-dev-1427 2018-11-06 15:09:59 +03:00
Pavel Punegov b4da3e91c9 Fix regionMatch for CharSequence 2018-11-06 14:46:31 +03:00
Ilya Matveev 51f3123e9c Support pointer macros in cinterop (#2279) 2018-11-04 13:58:37 +07:00
Pavel Punegov a05ad78784 Fix exclude: refine exclude with test list 2018-11-02 20:47:26 +01:00
Nikolay Igotti 3d2453b795 Fix problem with ensureNeverFrozen(). (#2292) 2018-11-02 17:47:41 +03:00
Nikolay Igotti 9c8b85af5d Xcode 10.1 (#2286)
* Update to XCode 10.1.

* Bump ABI version.
2018-11-01 11:54:54 +03:00
Vanessa Pyne e287b25e18 Fix sdl.def link in README.md (#2290) 2018-11-01 10:52:56 +03:00
Vasily Levchenko 6e0cde1e30 [kotlin compiler][update] 1.3.20-dev-1253 2018-10-31 14:40:41 +03:00
Pavel Punegov f4e225df9e Exclude task that fails with KT-27665 (#2284) 2018-10-31 14:19:22 +03:00
Nikolay Igotti 6249f4bdfe Refactor annotation checks, fix regression. (#2285) 2018-10-31 13:49:25 +03:00
Nikolay Igotti 0a43fa21d3 Avoid hanging external functions. (#2265) 2018-10-30 18:47:38 +03:00
SvyatoslavScherbina d02a51ba98 Implement '-Xexport-library=<path>' compiler argument (#2262)
Produced framework includes the entire API of exported libraries
2018-10-30 11:09:56 +03:00
Dmitriy Dolovov 4f0633412d Samples: Don't call MPPTools from 'kotlin {}' block. #2277 (#2280) 2018-10-30 15:03:53 +07:00
Pavel Punegov f5280940ae Update testData to latest Kotlin master 2018-10-29 15:20:04 +03:00