Commit Graph

2448 Commits

Author SHA1 Message Date
Vasily Levchenko 010360df7d build: disable producing shared library for llvm debug info (gradle version dependent) 2017-06-06 06:49:04 -07:00
Svyatoslav Scherbina 037580fbb7 Remove outdated InteropExample project 2017-06-06 11:32:23 +03:00
Nikolay Igotti 4fcbeadab4 Fix build 2017-06-05 22:18:45 +03:00
Alexander Gorshenev 5192bd1313 Entry point selection.
$ kotlinc -entry foo.bar.qux ...

selects `qux(args: Array<String>):Unit` in the package `foo.bar` as an entry point.

The short flag is `-e`.
2017-06-05 20:56:10 +03:00
Nikolay Igotti a2fa4938f3 Fix Windows resource linking (#633) 2017-06-05 17:58:47 +03:00
Mike Sinkovsky 1faaed5303 Build samples/tetris on Windows (#629) 2017-06-02 16:19:52 +03:00
Nikolay Igotti dd81d529ee Support for Android ARM64 on Mac (#627) 2017-06-02 15:05:15 +03:00
SvyatoslavScherbina 94add3cc20 Add compiler scripts for Windows (#625) 2017-06-02 13:50:27 +03:00
Alexander Gorshenev 977ae063f8 A little more defensive shell programming. 2017-06-01 23:38:14 +03:00
Alexander Gorshenev f9d0d6d563 Converted K2NativeCompilerArguments from Java to Kotlin. 2017-06-01 23:37:22 +03:00
Alexander Gorshenev fd26b7e156 Found some lost optimization flags. 2017-06-01 18:50:49 +03:00
SvyatoslavScherbina f2f82ab843 Support stack traces on Windows (#624)
Use GCC's unwind and load COFF symbols on mingw target.
2017-06-01 17:06:11 +03:00
Nikolay Igotti a5fe494ae3 Fix Windows tests (#622) 2017-06-01 11:46:14 +03:00
max-kammerer 9af223fb00 Extract common interfaces from native ir (#618)
* Move objects out of inner classes
* Extracted CommonBackendContext, common Ir and Symbols
* Switch some lowers to CommonBackendContext
* Move IrUtils to common package
* Move 'atMostOne' utils to common package
* Move DumpIrTreeWithDescriptorsVisitor to common package
2017-05-31 15:53:30 +03:00
Nikolay Igotti 74ffc479bb Add Windows i18n support (#617) 2017-05-31 10:01:49 +03:00
Ilya Matveev 4f9a1e9a33 build: Make gradle plugin depending on dist task 2017-05-31 10:17:14 +07:00
Ilya Matveev 8acd02dfee samples: Use built from sources gradle plugin by default. 2017-05-31 10:17:14 +07:00
Ilya Matveev e06e465de0 samples: Add README.md in root samples dir 2017-05-31 10:17:14 +07:00
Igor Chevdar 111a5b0e34 Fixed some tests 2017-05-30 14:50:15 +03:00
Igor Chevdar 5a216953e2 Ported harmony implementation of Double/Float <-> String
Double.toString(), Float.toString(), String.toFloat(), String.toDouble()
2017-05-30 14:50:15 +03:00
Svyatoslav Scherbina d6b8b4fb0f Add basic support for Windows with mingw-w64 2017-05-29 19:13:55 +03:00
Svyatoslav Scherbina ed60732058 Fix Windows-specific klib bugs 2017-05-29 19:13:55 +03:00
Svyatoslav Scherbina 9c35fbf91a Use .zip files on Windows in DependencyDownloader 2017-05-29 19:13:55 +03:00
Svyatoslav Scherbina d7adbfd221 Reconfigure interop with LLVM
Use more strict linking.
Also remove unused components.
2017-05-29 19:13:55 +03:00
Svyatoslav Scherbina 23f1df015d Update libclang interop stubs
Apply filters to exclude platform-dependent declarations.
2017-05-29 19:13:55 +03:00
Nikolay Igotti 79588716d6 Fix build 2017-05-29 15:42:11 +03:00
Nikolay Igotti ff8bce79d5 Uniform compiler/linker options treatment (#614) 2017-05-29 15:37:15 +03:00
Alexander Gorshenev c9ce175224 A bit simple file name suffix management. 2017-05-29 15:01:42 +03:00
Ilya Matveev 62134a0573 gradle-plugin: Fix interop artifact path 2017-05-29 15:01:42 +03:00
Alexander Gorshenev 1970af042f Introduce '-p' as a short name for '-produce'.
-p program // The default.

    -p library

    -p bitcode
2017-05-29 15:01:42 +03:00
Alexander Gorshenev 1d3a5e6585 Don't use explicit file namesuffixes in build.sh scripts. 2017-05-29 15:01:42 +03:00
Alexander Gorshenev c93bddbba1 Get rid of -nolink flag uses. 2017-05-29 15:01:42 +03:00
Alexander Gorshenev 380010d1ee -produce program|library|bitcode
'program' makes a kexe.

    'library' makes a klib.

    'bitcode' makes just a bare bitcode file.

    The default is 'program'.
2017-05-29 15:01:42 +03:00
Alexander Gorshenev 34491cfb01 Lexically sort compiler option definitions. 2017-05-29 15:01:42 +03:00
Kevin Waldock a56a53f408 Fixed spelling mistake in INTEROP.md (#611) 2017-05-28 11:20:06 +03:00
alexander-gorshenev e44e58a4b8 Remove demo target. (#609) 2017-05-27 15:10:07 +03:00
igotti-google fe3ae96079 Revert "Improved Gradle plugin. Fixed samples according to these changes. (#594)"
This reverts commit 8b18c7c8cb.
2017-05-27 11:27:00 +03:00
igotti-google 9760e0f21c Revert "Fix build"
This reverts commit bd7c24745a.
2017-05-27 11:26:59 +03:00
igotti-google 7ba6b6d2cc Revert "Interop test fix"
This reverts commit 09eee739f0.
2017-05-27 11:26:56 +03:00
Nikolay Igotti 09eee739f0 Interop test fix 2017-05-26 16:49:58 +03:00
Nikolay Igotti bd7c24745a Fix build 2017-05-26 16:17:39 +03:00
Alexander Podkhalyuzin 8b18c7c8cb Improved Gradle plugin. Fixed samples according to these changes. (#594) 2017-05-26 15:43:16 +03:00
Aleksey Kladov 7d901dc610 Gradle plugin: add artifacts to the IDE project model 2017-05-26 16:08:18 +07:00
Ilya Matveev f1256edb02 build: Use konan.properties values for some building constants.
This patch uses values provided by konan.properties to specify
build dependencies (libffi and sysroots) and the "target" parameter
for LLVM.
2017-05-26 15:52:42 +07:00
Nikolay Igotti 070ea929f0 Small backtrace support cleanup. 2017-05-25 22:35:56 +03:00
Igor Chevdar 2dcfdebd5a Optimized inliner: substitute leaking descriptors only once 2017-05-25 16:15:55 +03:00
Nikolay Igotti a4ba0fbb32 Add Linux backtrace support. (#605) 2017-05-25 15:50:18 +03:00
Ilya Matveev 862c68b5c5 Gradle plugin: fix --include-build workflow
By convention, gradle uses project name as artifactId, `project.group`
property for groupId and `project.version` for version.

This commit switches to this convention instead of configuring
publication tasks directly. It allows to easily substitute published
plugin with a plugin build locally by issuing

`./gradlew build --include-build ../kotlin-native`

in the dependent project.
2017-05-25 15:11:50 +07:00
Igor Chevdar 7997b4f362 Implemented *Array.toString() for all arrays 2017-05-24 22:53:18 +03:00
Igor Chevdar 3f61425d71 Reordered lowerings
Callable reference lowering must be performed before
local functions lowering because otherwise
original names of local functions would be lost
2017-05-24 22:53:18 +03:00