Commit Graph

1422 Commits

Author SHA1 Message Date
Alexander Gorshenev dd42c63bd2 Moved production of windws dll .def file to CAdapterGenerator.kt. 2017-12-13 03:13:25 +03:00
Alexander Gorshenev 3984c4ff64 Produce windows .def files together with .dlls. 2017-12-13 03:13:25 +03:00
Vasily Levchenko 0e89083a8d [wasm32] remove unstable hack of executing hosts OS tool for file copying intead of wasm linker 2017-12-12 19:00:56 +03:00
Alexander Gorshenev bb47a28c15 Properly handle TLS for -produce dynamic.
In additon, changed konan.properties linkerDebugFlags to linkerNoDebugFlags to reflect reality.
2017-12-12 16:48:26 +03:00
Vasily Levchenko 33fb54e7a9 [config] use single llvmVersion for project 2017-12-12 14:21:43 +03:00
Vasily Levchenko 846e091a5b [compiler] accepts options from file prefixed with '@' 2017-12-12 14:21:05 +03:00
ilmat192 cba7319e98 Fix utf8 conversion (#1121) 2017-12-12 13:30:50 +03:00
Vasily Levchenko 4baeb5cb45 [wasm32] linux & mingw support 2017-12-11 12:00:35 +03:00
Nikolay Igotti 93a3444a70 Python extension sample. (#1123) 2017-12-08 12:38:19 +03:00
Svyatoslav Scherbina 0d082d6730 Improve kotlin.Unit support in produced framework
Make the Objective-C wrapper unique, and provide the method to get it
2017-12-07 18:56:26 +03:00
Svyatoslav Scherbina cf076ffff0 Don't expose special classes when producing frameworks
* Kotlin annotation classes;
* Enum entry classes;
* Interop types.
2017-12-07 18:56:26 +03:00
Svyatoslav Scherbina 8b6d3c0a69 Add dynamic and framework to -produce CLI description 2017-12-07 18:56:26 +03:00
Svyatoslav Scherbina b705fa9656 Guard Kotlin code from foreign exceptions when producing framework 2017-12-07 18:56:26 +03:00
Igor Chevdar 03ef9e4855 Added test on special bridges 2017-12-07 17:06:13 +03:00
Igor Chevdar c3a6ea4946 Special bridge building fix 2017-12-07 17:06:13 +03:00
Alexander Gorshenev c30d30c96c Don't #include C Adapter header into its cpp.
Just textually concatenate.
2017-12-07 05:10:24 +03:00
Alexander Gorshenev 63aff3eded Compile the C Adaptor with clang and link it to the final binary. 2017-12-07 05:10:24 +03:00
Igor Chevdar 86e221ed58 Added tests on workers's bridges 2017-12-06 18:32:22 +03:00
Igor Chevdar 8df6ff5215 Added bridges building for workers 2017-12-06 18:32:22 +03:00
Svyatoslav Scherbina d51e0e0a30 Improve produced framework layout on mac 2017-12-06 12:10:02 +03:00
Svyatoslav Scherbina b5e81a8008 Improve package class naming for -produce framework
Don't include common package to the name
2017-12-06 12:10:02 +03:00
Svyatoslav Scherbina 5ade7505b3 Implement Info.plist generation for produced frameworks 2017-12-06 12:10:02 +03:00
Svyatoslav Scherbina 954caf836a Add -install_name to produced frameworks 2017-12-06 12:10:02 +03:00
Svyatoslav Scherbina 85103a455b Add dynamic linker flags for ios and ios_sim targets 2017-12-06 12:10:02 +03:00
Svyatoslav Scherbina 0279cee371 Remove workarounds for LLVM bug 33220 2017-12-06 09:25:18 +03:00
Igor Chevdar 05179971c1 Added test 2017-12-04 16:09:05 +03:00
Igor Chevdar 4c07c70829 Removed double evaluation of enum's args 2017-12-04 16:09:05 +03:00
Nikolay Igotti 5663c176a5 Runtime ABI (#1097) 2017-12-01 17:04:51 +03:00
Aleksey Kladov a271f676d5 debug: a test was fixed by llvm upgrade
Closes KT-20323
2017-12-01 15:37:03 +03:00
Alexander Gorshenev cdd3185920 Instead of execClang we now have execKonanClang which properly invokes
the distribution clang able to utilize distributed sysroots etc.
And execBareClang which just invokes the distribution clang with system sysroot.
2017-12-01 12:11:34 +03:00
Vasily Levchenko 3a6cb76dc1 [llvm][update][5.0.0] llvm 5.0.0 2017-12-01 10:36:34 +03:00
Vasily Levchenko e2d2ed5237 [codegen][debug info] wrong usage of DW_OP_plus with const fixed 2017-12-01 10:36:34 +03:00
Ilya Matveev 1c16fc1166 build: Rename kotlin version properties
kotlin_version -> buildKotlinVersion
kotlinVersion -> kotlinCompilerVersion
2017-12-01 13:01:08 +07:00
Nikolay Igotti 8ae1a156b7 Generate reverse interop stubs (#1065) 2017-11-30 18:09:40 +03:00
Igor Chevdar 6492682b28 Supported recursive references in enums
Split enum entries initialization onto two steps:
1. Allocation of all instances and storing them in the array;
2. Calling constructors on each instance.
2017-11-30 16:27:06 +03:00
Igor Chevdar faa9986489 DFGBuilder fix
Intrinsic functions considered internal.
2017-11-30 16:27:06 +03:00
Svyatoslav Scherbina d745e80135 Implement -produce framework option
It compiles Kotlin code to Objective-C framework
(also importable to Swift)
2017-11-29 12:12:02 +03:00
Svyatoslav Scherbina 6114a5b35c Preserve visibility of classes copied by inliner 2017-11-29 12:12:02 +03:00
Vasily Levchenko 5a858247bc [kotlin compiler][update] 1.2-20171124.204021-51
kotlinScriptRuntimeVersion=1.2-20171124.204038-51
kotlinStdLibVersion=1.2-20171124.204041-51
9kotlinReflectVersion=1.2-20171124.204033-51
kotlinStdLibJdk8Version=1.2-20171124.204046-51
kotlinGradlePluginVersion=1.2-20171124.204030-51
2017-11-28 09:25:18 +03:00
Mikhael Bogdanov 28fff970e9 Get rid of cli in common ir
(cherry picked from commit d16ff1f4f9fbf54d2bc1916c80adfba2dfd4d513)
2017-11-28 09:25:18 +03:00
Igor Chevdar efbc8fd3e6 Added serialization/deserialization of DFG 2017-11-27 14:18:34 +03:00
Igor Chevdar 4c4ab1f226 Fixed bug in DeepCopyIrTreeWithDescriptors
A class’s interfaces were forgotten to be copied during copying of a class descriptor.
2017-11-27 14:18:34 +03:00
Igor Chevdar 0a07db93ed Data flow graph building 2017-11-27 14:18:34 +03:00
Konstantin Anisimov 356400158f All arguments of inline function are evaluated. 2017-11-24 17:12:29 +03:00
Pavel Punegov 1c371bc937 Review fix 2017-11-24 15:02:43 +03:00
Pavel Punegov 8ac1fed0f3 Build results file even if some tasks failed with exception 2017-11-24 15:02:43 +03:00
Konstantin Anisimov 4e043e8f46 Default argument can contain subjects for parameter substitution 2017-11-23 12:51:09 +03:00
Alexander Gorshenev 9c0a583801 Assume all user functions to be @Used when compiling for -produce dynamic. 2017-11-21 12:28:53 +03:00
Alexander Gorshenev de41c5a71f Brought back the @Used annotation processing. 2017-11-21 12:28:53 +03:00
Alexander Gorshenev 4236bb22fb Deal with entry points and launcher bcs for shared object generation. 2017-11-21 12:28:53 +03:00