Commit Graph

2855 Commits

Author SHA1 Message Date
Alexander Gorshenev 373df0d006 Match konanc 3GB runner heap setting in Gradle Plugin. 2017-09-28 12:32:09 +03:00
Alexander Gorshenev 606f98f9d3 Added minimal posix.def for windows. 2017-09-28 12:32:09 +03:00
Vasily Levchenko 788d86bec4 [buildSrc] fix test with platform libs enhancements 2017-09-28 07:18:33 +03:00
Vasily Levchenko 910e79a482 [build][platform libs] order build of libraries in topological order 2017-09-28 06:14:18 +03:00
Vasily Levchenko f6c040ea3d [interop][shared] introduce depends field of DefFile for declaring library dependencies
diff --git a/klib/src/platform/osx/objc.def b/klib/src/platform/osx/objc.def
index 9631fe3b..510de838 100644
--- a/klib/src/platform/osx/objc.def
+++ b/klib/src/platform/osx/objc.def
@@ -7,6 +7,6 @@ headers = objc/List.h objc/NSObjCRuntime.h objc/NSObject.h objc/Object.h objc/Pr

 compilerOpts = -D_XOPEN_SOURCE
 linkerOpts = -lobjc
-
+depends = osx posix
 ---
 // objc-auto.h is excluded so far due to interop issues.
diff --git a/klib/src/platform/osx/osx.def b/klib/src/platform/osx/osx.def
index 8dfd8116..6573dc0c 100644
--- a/klib/src/platform/osx/osx.def
+++ b/klib/src/platform/osx/osx.def
@@ -28,6 +28,7 @@ headers = AppleTextureEncoder.h AssertMacros.h Availability.h AvailabilityIntern

 compilerOpts = -D_XOPEN_SOURCE
 linkerOpts = -ldl -lz
+depends = posix

 ---

diff --git a/klib/src/platform/osx/zlib.def b/klib/src/platform/osx/zlib.def
index 46ed691d..e3cab7ba 100644
--- a/klib/src/platform/osx/zlib.def
+++ b/klib/src/platform/osx/zlib.def
@@ -1,3 +1,4 @@
 package = platform.zlib
 headers = zconf.h zlib.h
 linkerOpts = -lz
+depends=posix
2017-09-28 06:14:18 +03:00
Vasily Levchenko 46e6d60749 [interop][shared] extract DefFile class for using in cinterop tool and gradle plugin 2017-09-28 06:14:18 +03:00
minamoto cc1f7aa5e0 [platform][libs] linux build fix 2017-09-27 15:08:04 +03:00
Aleksey Kladov e3611ca883 [debug] make lldb printes more robust
`GetValueAsUnsigned` return result as a Python `long`, while *some*
versions of lldb require that an `int` is passed to
`ReadCStringFromMemory` down the line. So let's cast result to `int`,
which is 64 bit wide on Python2 anyway.

Also use nicer accessors and a simpler rule to find Kotlin types.
2017-09-27 05:50:14 +03:00
Sergey Bogolepov 0fb788d580 Renamed targets. Added linux_ prefix
mips32   -> linux_mips32
mipsel32 -> linux_mipsel32
2017-09-26 16:18:33 +03:00
Sergey Bogolepov b7978c3a1f Renamed targets.
mips -> mips32
mipsel -> mipsel32
2017-09-26 16:18:33 +03:00
Ilya Matveev 5304ff39f4 MIPS: Rename mips gcc toolchain 2017-09-26 16:18:33 +03:00
Sergey Bogolepov c1e412ce40 Updated konan.properties 2017-09-26 16:18:33 +03:00
Sergey Bogolepov 8746247d2d Moved qemu to the toolchain 2017-09-26 16:18:33 +03:00
Sergey Bogolepov 46eed4efbb Enabled disabled targets 2017-09-26 16:18:33 +03:00
Sergey Bogolepov ca567ac35c Added support for mipsel 2017-09-26 16:18:33 +03:00
Ilya Matveev a6f4481c5b Separate the MIPS toolchain from the Linux one. 2017-09-26 16:18:33 +03:00
Sergey Bogolepov 8955964a6e Added big-endian mips detection. Fixes Double.toString() conversion 2017-09-26 16:18:33 +03:00
Sergey Bogolepov 9187022721 Initial support for MIPS 2017-09-26 16:18:33 +03:00
Nikolay Igotti eb0415b2e5 Fix Android build (#886) 2017-09-26 15:10:25 +03:00
Alexander Gorshenev fc31e96b26 Only allow library prunning for the default links for now.
Don't forget to bring it back when library dependency info is available.
2017-09-26 15:09:03 +03:00
Alexander Gorshenev 97936093dc Build platform libs within the bundle top level target. 2017-09-26 13:25:47 +03:00
SvyatoslavScherbina 786374ef86 Add basic support for class references
Also use class name for `Any.toString` and `Throwable.toString`.
2017-09-26 10:59:45 +03:00
Svyatoslav Scherbina a6ca64871f Implement explicit and implicit object pinning for interop
This allows passing Kotlin primitive arrays directly to native
2017-09-26 09:50:42 +03:00
Svyatoslav Scherbina fd35ccbf2e Represent void* as CValuesRef<*>? 2017-09-26 09:50:42 +03:00
Svyatoslav Scherbina 17ccd3ee02 Minorly rework CValuesRef to make it more universal when subclassing
Allow `getPointer` to register custom disposers with `defer`
2017-09-26 09:50:42 +03:00
Svyatoslav Scherbina a3721f857c Optimize Arena and memScoped
Also do minor refactoring.
2017-09-26 09:50:42 +03:00
Svyatoslav Scherbina 2217be4003 Add defer support to memScope 2017-09-26 09:50:42 +03:00
Svyatoslav Scherbina 9609a10e09 Improve StableObjPtr
* Rename to StableRef
* Make it more typed
* Provide more idiomatic and convenient methods
* Share more code between JVM and Native
2017-09-26 09:50:42 +03:00
Svyatoslav Scherbina d8ed1f4414 Hide nativeMemUtils and pointerSize 2017-09-26 09:50:42 +03:00
Svyatoslav Scherbina 388aba5040 Export property accessors if the property is exported
This fixes `@PublishedApi` support for properties.
2017-09-26 09:50:42 +03:00
Vasily Levchenko 197f77f8e3 [tests] string builder appendln tests 2017-09-25 17:51:33 +03:00
Vasily Levchenko 4f6178fb1f [stdlib][string builder] appenln function added 2017-09-25 17:51:33 +03:00
Vasily Levchenko d6a47c09c6 [build][debug info] fix gradle 'build' 2017-09-25 17:25:09 +03:00
Ilya Matveev 4be1b2cde1 build: Correct property name in platform lib build 2017-09-25 15:21:49 +03:00
Ilya Matveev 412d0485e4 box-tests: Remove duplicating assertions from testUtils.kt
The testUtils.kt contains some assertions which are now implemented
in stdlib. This patch removes them from testUtils.kt
2017-09-25 13:45:11 +03:00
Alexander Gorshenev f1c3e866b4 A couple of tests for default libraries. 2017-09-25 12:49:22 +03:00
Alexander Gorshenev 27f7e4263b Auto link everything found in dist/klib.
Disable such behavior with -nodefaultlibs.
Omit libraries from the link stage if their packages have not been referenced.
2017-09-25 12:49:22 +03:00
Ilya Matveev 5d79c079b4 gradle-plugin: Accept Any as includeDir and inputDir 2017-09-25 11:31:46 +03:00
Ilya Matveev beb6c3eb10 gradle-plugin: Rename kLib -> klib 2017-09-25 11:31:46 +03:00
Ilya Matveev beb2ed07dc gradle-plugin: Delete user output dirs in the clean task 2017-09-25 11:31:46 +03:00
Ilya Matveev 0b2425026e gradle-plugin: Add regression test for KT-20192 2017-09-25 11:31:46 +03:00
Ilya Matveev ff6515a263 gradle-plugin: Improve parameter dumping
#KT-20191 Fixed
2017-09-25 11:31:46 +03:00
Ilya Matveev 47f26f282b gradle-plugin: Warn if both konan.home and konan.version are used
The gradle plugin ignores the `konan.version` property if the
`konan.home` one is set. This patch prints warning in such cases.
2017-09-25 11:31:46 +03:00
Ilya Matveev 4418eb4eba gradle-plugin: Rerun tasks if konan.home property is changes
#KT-20193 Fixed
2017-09-25 11:31:46 +03:00
Ilya Matveev c37e650da2 dependencies: Don't retry downloading in case of bad HTTP response
#KT-20194 Fixed
2017-09-25 11:31:46 +03:00
Ilya Matveev 2f4163ece6 unit-tests: Fix filenames for Windows 2017-09-25 11:31:22 +03:00
Ilya Matveev 6db5bbb4f0 unit-tests: Disable tests for unit tests support on wasm32 2017-09-25 11:31:22 +03:00
Ilya Matveev 4c3016d21b unit-tests: Minor fixes before review 2017-09-25 11:31:22 +03:00
Ilya Matveev 2d757c4150 unit-tests: Add assertion and annotation tests 2017-09-25 11:31:22 +03:00
Ilya Matveev 2365df60bb unit-tests: Return -1 as an exit code if tests failed 2017-09-25 11:31:22 +03:00