alexander-gorshenev
5700fa8cea
Allow a couple of test pass on linux_mips32 target.
2017-10-23 19:34:34 +03:00
Alexander Gorshenev
dc8840e14c
No testLibrary for cross compilation targets.
2017-10-23 16:03:20 +03:00
Alexander Gorshenev
886ef5fe5a
Moved a newly created test to Standalone category.
2017-10-23 16:03:20 +03:00
Alexander Gorshenev
3c5602017f
Several typos in comments and messages.
2017-10-23 16:03:20 +03:00
Alexander Gorshenev
500492930b
Renamed isDefaultLink to isDefaultLibrary.
2017-10-23 16:03:20 +03:00
Alexander Gorshenev
a8c1851534
Make user provided libraries have precedence over default libraries.
...
Simplified duplicate elimination.
2017-10-23 16:03:20 +03:00
Alexander Gorshenev
19fe0168ad
Tuned test golden value.
2017-10-23 16:03:20 +03:00
Alexander Gorshenev
7d8f7e54c3
Recursively resolve libraries after immediateLibraries have been calculated.
2017-10-23 16:03:20 +03:00
Alexander Gorshenev
e2e883ee08
Introduced testLibrary and a test utilizing it.
2017-10-23 16:03:20 +03:00
Alexander Gorshenev
7ade68452e
Brought back our ability to have non-platform specific default libraries.
...
Separated dist/klib libraries into common and platform parts to exclude name clash.
2017-10-23 16:03:20 +03:00
Alexander Gorshenev
0f693d63e4
Eliminate a warning due to an unnecessary cast.
2017-10-23 16:03:20 +03:00
Alexander Gorshenev
35eff51749
Do not apply purging to user provided libraries.
2017-10-23 16:03:20 +03:00
Pavel Punegov
85a782cd7e
Disable test for wasm32 due to KT-20862
2017-10-20 18:25:05 +03:00
Pavel Punegov
9633a09c07
Exclude tests that could not be used with TestRunner automatically
2017-10-20 18:25:05 +03:00
Pavel Punegov
535e18fc20
Simplify dependence on buildKonanTests. Remove arguments from test
2017-10-20 18:25:05 +03:00
Pavel Punegov
d56a4f8830
Fixes to tests: forgotten package names and tests
2017-10-20 18:25:05 +03:00
Pavel Punegov
a6af8aa11c
Uncomment incorrectly commented out tests
2017-10-20 18:25:05 +03:00
Pavel Punegov
35505007d2
TestRunner support in test's build.gradle
...
* Fixes to tests
* RunKonanTest runs tests build with TestRunner
* Standalone tests
2017-10-20 18:25:05 +03:00
Pavel Punegov
9d077d7f4f
BC native tests port to Konan's TestRunner
2017-10-20 18:25:05 +03:00
Vasily Levchenko
d470df57c0
[tests][teaspot opengl] fix build
2017-10-19 10:06:08 +03:00
Alexander Gorshenev
77eff75783
Swapped adding manifest addend properties and depends clause update.
2017-10-18 15:59:07 +03:00
Alexander Gorshenev
e84ab4abfe
Change manifest 'dependencies' field for 'depends'.
...
To reduce user confusion on reading manifests.
2017-10-18 15:59:07 +03:00
Alexander Gorshenev
6cab9a1038
Use the same 'package' field in manifest as in .def-file.
...
Eliminate pkg.
Use explicit 'interop = true' clause to distingush interop libraries.
2017-10-18 15:59:07 +03:00
Alexander Gorshenev
c7190141b1
Mandate to demonstrate a ModuleDescriptor as a proof that the resolve is over
...
for the recursive library resolution.
2017-10-18 12:11:01 +03:00
Alexander Gorshenev
bddada22e5
Rewritten unneeded library purge machinery.
2017-10-18 12:11:01 +03:00
Svyatoslav Scherbina
ffb0d0cfcb
Add quickfix for unsupported typedef NSFoo Bar.
2017-10-17 13:23:21 +03:00
Svyatoslav Scherbina
e8f97b0436
Represent Objective-C block pointers in methods as Kotlin functions
...
Also do some refactoring.
2017-10-17 13:23:21 +03:00
Svyatoslav Scherbina
caf6719fc4
Make linkage issues more understandable in Objective-C interop
2017-10-17 13:23:21 +03:00
Svyatoslav Scherbina
a0dc2ecef2
Enable method signature checks when overriding Objective-C method
2017-10-17 13:23:21 +03:00
Aleksey Kladov
3fb208cb9d
[debug] fix line info for artificial IrElements ( #941 )
...
Some IrElements have -1 as a startOffset (for example, generated methods
of data classes). To represent such offsets in debuginfo, we should use
0 instead of -1, because line/columns are one-based unsigneds.
closes KT-20443
2017-10-16 16:16:51 +03:00
Mike Sinkovsky
f4c90e1a86
fix gradle 4.2 warning on windows ( #937 )
2017-10-13 12:54:22 +03:00
Vasily Levchenko
6457e97364
[kotlin compiler][update] 1.1-20171004.235336-906
...
kotlin-script-runtime: 1.1-20171004.235353-597
kotlin-stdlib: 1.1-20171004.235357-905
kotlin-reflect: 1.1-20171004.235348-905
kotlin-stlib-jdk8: 1.1-20171004.235402-815
kotlin-gradle-plugin: 1.1-20171004.235345-884
2017-10-12 15:16:30 +03:00
Vasily Levchenko
596c8c086c
[build] projet-report plugin added
...
for maintenence needs e.g.
./gradlew htmlDependencyReport
gitves nice reports of dependencies and helps in compiler update
2017-10-12 15:16:30 +03:00
Alexander Gorshenev
17ae2343d4
There is not platform.posix for wasm32.
2017-10-12 10:56:21 +03:00
Alexander Gorshenev
2445357166
A test to check we don't throw away a library dependency only because it
...
it a default lib not needed in the main program.
2017-10-11 17:05:12 +03:00
Alexander Gorshenev
e7286998aa
If we get a defaultly linked library again from a library dependency
...
it should not be purged anymore for the final binary.
2017-10-11 17:05:12 +03:00
Svyatoslav Scherbina
ea802dfcdf
Don't touch dependencies when serializing the module
...
Otherwise dependencies would seem as needed.
2017-10-11 16:48:33 +03:00
Svyatoslav Scherbina
081b990863
Don't mark library needed if it was touched while looking for cnames.*
...
Also do minor refactoring.
2017-10-11 16:48:33 +03:00
SvyatoslavScherbina
faa5ba0e7c
Move platform libs to dist/klib/$target ( #926 )
2017-10-10 14:48:42 +03:00
SvyatoslavScherbina
8bc552632d
Platform lib fixes and improvements ( #925 )
...
* Build platform klibs with `-nodefaultlibs`
* Improve android platform libs:
* Add dependencies
* Add header filters
* Add glescommon
* Do minor cleanup
* Add minor code improvements
2017-10-10 11:41:52 +03:00
Svyatoslav Scherbina
c7588d7928
Use packages specified in .def files for platform libs
2017-10-09 17:24:47 +03:00
Ilya Matveev
bf08359f0d
unit-tests: Report error on test functions with incorrect signature
2017-10-09 11:38:32 +03:00
Ilya Matveev
e245a23c34
Minor improvements in recursive klib dependency support
...
* Support -r option in the cinterop tool.
* Move klib resolve into separate methods.
* Don't treat directory as a library if it doesn't contain a manifest.
* Rework recursive library search + duplicate removal.
* Support recursive klib processing in the cinterop tool.
2017-10-06 14:36:09 +03:00
Svyatoslav Scherbina
62bee84a26
Workaround non-unique symbol names of Objective-C category methods
2017-10-06 11:16:18 +03:00
Svyatoslav Scherbina
c6ee45a1d2
Specify SDK version explicitly when linking for iOS
...
If `-sdk_version` option is absent, ld infers the version from
`-syslibroot` path.
Since sysroot directory name in our dependencies differs from the
Xcode SDK names, the resulting binary didn't contain correct SDK version
specification, and this was leading to device-orientation-related bugs
on iOS 11.
2017-10-06 11:16:18 +03:00
SvyatoslavScherbina
7795a7856a
Support global variables in interop ( #903 )
2017-10-06 10:56:31 +03:00
Vasily Levchenko
3777d86be2
[tests][interop] fix sockets.def placement closer to test (fix build)
2017-10-06 06:29:08 +03:00
Igor Chevdar
fa21a260b1
Fixed coroutines for wasm
...
Replaced llvm indirectBr instruction with switch instruction.
2017-10-05 14:10:06 +03:00
Ilya Matveev
8fcc4c4f30
unit-tests: Add tests for test runner
2017-10-05 11:37:34 +03:00
Ilya Matveev
1b8fc1a40b
unit-tests: Use file name as a suite name for top-level tests
...
The naming system used is the following. If there is a file
'foo.kt' with the following content:
// foo.kt
package bar.baz
@Test fun test() { ... }
Then 'bar.baz.fooKt' will be a test suite name and 'test' will be
a test name.
2017-10-05 11:37:34 +03:00