Commit Graph

47 Commits

Author SHA1 Message Date
Vasily Levchenko 65dd798818 [build][native support] intoduced new native support. 2021-02-24 11:07:18 +01:00
Vasily Levchenko 7b73917217 [build][dist] global dist fixed 2021-02-24 11:07:17 +01:00
Vasily Levchenko 8a4b5efa9e [build][native] don't ever fix dist, take it with API 2021-02-24 11:07:17 +01:00
Vasily Levchenko 46f2182ba6 [build][tests] more utilities functions used 2021-02-24 11:07:16 +01:00
Vasily Levchenko 6234bcb453 [build][test] enable external compiler tests 2021-02-24 11:07:15 +01:00
Vasily Levchenko 840c1e612c [build] joint (step 2)
- dist:
  - compiler
  - tools(cinterop,klib)
  - stdlib
  - cache
2021-02-24 11:07:13 +01:00
Vasily Levchenko c85c3ac123 [build] joint (step 1)
(cherry picked from commit 7d0775f7e69ab900200bcf1fa78b94d68e6bd4f6)
2021-02-24 11:04:59 +01:00
Ilya Matveev 114f5ae890 Remove .git directory when downloading googletest sources
Keeping the .git folder in the googletest directory may cause
changing .idea/vcs.xml during IDEA import. .idea/vcs.xml is under
source control, thus changing it litters a current diff.
2021-02-24 10:59:59 +01:00
Igor Chevdar ca953d3186 [tests] Remove explicit NI switching on in tests
It is on by default anyway, but specifying it explicitly turns on specific 'compatibility' mode in FE
which is not needed in K/N
2021-02-24 10:53:42 +01:00
Igor Chevdar ae32e18634 [tests] Turned on passing test 2021-02-15 10:16:10 +01:00
Sergey Bogolepov 884056b7b4 Check that given anotherDistro path is actually a Kotlin/Native distribution 2021-02-15 10:16:10 +01:00
Sergey Bogolepov fddf28ac47 Support for macos_arm64 target in backend
(cherry picked from commit 82775e93c1389f21f9be97bd0edfd16dd50300ea)
2021-02-09 09:00:48 +01:00
Sergey Bogolepov 5a18a565b7 Support interop libraries in dynamic tests 2021-02-09 09:00:46 +01:00
Vasily Levchenko 8b2f0d644b [build] kotlin.*Compile: -Xskip-prerelease-check
(cherry picked from commit 57172ac6ead928b565fefaf49d8405a07c856e25)
2021-02-01 16:54:15 +01:00
Alexander Gorshenev ec024cee53 Extracted multi-module compiler runner for external tests to a separate kotlin file.
(cherry picked from commit 4fd88e4d33d8f80370b3ba4eee4c64869c1f1734)
2021-02-01 16:54:15 +01:00
Alexander Gorshenev 58ea71cb0e Made test runner work with binary compatibility tests
(cherry picked from commit e0b599a632b94e4b1303fc94275dcd5b6a7dfb6b)
2021-02-01 16:54:15 +01:00
Alexander Shabalin d84c83d7da Extract FreezeHooks and make them testable (#4654) 2021-02-01 16:54:14 +01:00
Pavel Punegov 8a48609823 Lazy task creation in konan plugin using Gradle Providers API.
Removes obsolete CMake task and IDE model.

Use Provider API for klib files. Replace findAll with matching to make tasks configure lazily

Make some test tasks use lazy configuration

Fix adding tasks to lists. Add it. to all fields to improve IDEA navigation

Remove obsolete IDE model from the task

Remove tooling model tests

Fix aggregate task dependency

Fix run tasks. Cleanup

Review fixes
2021-02-01 16:54:14 +01:00
Alexander Shabalin b06a870011 Trust mimalloc to be thread safe (#4649) 2021-01-26 17:38:03 +03:00
Alexander Shabalin 6cc60ad6a2 Support sanitizers in runtime tests (#4622) 2021-01-26 17:38:02 +03:00
Alexander Shabalin a362742a37 Enable C++17 (#4623) 2021-01-19 13:37:37 +03:00
Alexander Shabalin aed23ff098 Use toolchain clang for runtime tests on mac (#4632) 2021-01-19 13:37:36 +03:00
Alexander Shabalin 32e3deace1 Enable unused-function warning for runtime (#4628) 2021-01-19 13:37:36 +03:00
Vasily Levchenko 828afa28bb [performance][build] use buildKotlinVersion 2020-12-21 16:18:37 +01:00
Sergey Bogolepov 62e7b67170 Use caches for linux_x64 compile-only benchmarks 2020-12-21 16:18:37 +01:00
Sergey Bogolepov 3c3407b380 Fix running tests on remote Raspberry Pi. 2020-12-21 16:18:37 +01:00
Sergey Bogolepov a664dbf07f Use emulator executor for arm-based linux targets 2020-12-14 15:25:37 +01:00
Pavel Punegov e1d9a36de3 Use maven { setUrl("...") } that works both for .gradle.kts and .gradle files 2020-12-14 15:25:37 +01:00
Pavel Punegov 4638988c2f Use project's kotlin compiler version and repo for the samples 2020-12-14 15:25:37 +01:00
Pavel Punegov e8403bc202 Fix CopySamples: make task work for both gradle and gradle.kts files 2020-12-14 15:25:36 +01:00
Sergey Bogolepov 2d30796483 Better checking of ABI compatibility.
Split ${target}CheckAbiCompatibility into two:
1) check${targetName}PlatformAbiCompatibility -- check platform libs compatibility of the given target
2) checkStdlibAbiCompatibility -- check only stdlib.

This approach allows to avoid repeated check of stdlib for each target.
2020-12-14 15:25:36 +01:00
Igor Chevdar 606fbe37fc [IR] Turned off IR validation for everything but our tests 2020-11-28 21:12:17 +01:00
Alexander Shabalin 6cb8b0c18a Only llvm-link generated files in CompileToBitcode (#4536) 2020-11-28 21:11:26 +01:00
Alexander Shabalin a19bf5c48e Header dependencies (#4530) 2020-11-28 21:07:20 +01:00
Sergey Bogolepov 20931eebe1 [KT-43276] Add watchos_x64 target 2020-11-28 21:07:20 +01:00
Pavel Punegov a15d82c698 Filter out __cxa_demangle definition linker options in tests
(cherry picked from commit 1e17585259203f957decc747f8735537179dc73c)
(cherry picked from commit 26b29d7fadd64dbd1f3584a652785989e70eb579)
2020-11-28 21:01:56 +01:00
Alexander Shabalin 0a25eac957 Fix runtime tests dependencies (#4527) 2020-11-28 21:01:55 +01:00
Alexander Shabalin ee508efb23 Add a switch to destroy runtime only on shutdown (#4482) 2020-11-28 21:01:54 +01:00
Pavel Punegov 37ff2c338e Filter out __cxa_demangle definition linker options in tests 2020-11-28 20:58:17 +01:00
Pavel Punegov ab02bbcc37 Fix clang invocation in the tests: use linker with the same options as the build. (#4499)
Fix clang invocation in the tests: use linker with the same options as the build.
2020-11-28 20:56:41 +01:00
Pavel Punegov 3b48c76b55 Add cache-redirector for jcenter 2020-11-28 20:55:38 +01:00
Pavel Punegov 54b64eca08 Fix KLibInstall: use project's property for dist path. 2020-11-28 20:54:08 +01:00
Campbell Jones 4c9bbe54d4 Improve compatibility with newer GCC+Clang, resolve some warnings 2020-11-28 20:53:03 +01:00
Sergey Bogolepov 8c5bb6420a Introduce ${target}CheckAbiCompatibility task.
Since Kotlin/Native is moving tovards stable ABI it is important to check between releases that there are no unexpected breaking changes.
${target}CheckAbiCompatibility task allows to compare `klib signatures` dumps of stdlib and platforms libs from current distribution and the given one.
2020-11-28 20:50:09 +01:00
Sergey Bogolepov f2fae3d1b2 [Tests] fix compilation.log contents
Do not override stdout because we want to check output of both streams.
2020-11-28 20:48:58 +01:00
LepilkinaElena e57839ece6 Separate performance project (#4473) 2020-11-28 19:45:29 +01:00
Stanislav Erokhin f624800b84 Move everything under kotlin-native folder
I was forced to manually do update the following files, because otherwise
they would be ignored according .gitignore settings. Probably they
should be deleted from repo.

Interop/.idea/compiler.xml
Interop/.idea/gradle.xml
Interop/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_runtime_1_0_3.xml
Interop/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_stdlib_1_0_3.xml
Interop/.idea/modules.xml
Interop/.idea/modules/Indexer/Indexer.iml
Interop/.idea/modules/Runtime/Runtime.iml
Interop/.idea/modules/StubGenerator/StubGenerator.iml
backend.native/backend.native.iml
backend.native/bc.frontend/bc.frontend.iml
backend.native/cli.bc/cli.bc.iml
backend.native/cli.bc/src/org/jetbrains/kotlin/cli/bc/K2Native.kt
backend.native/cli.bc/src/org/jetbrains/kotlin/cli/bc/K2NativeCompilerArguments.kt
backend.native/tests/link/lib/foo.kt
backend.native/tests/link/lib/foo2.kt
backend.native/tests/teamcity-test.property
2020-10-27 21:00:28 +03:00