Commit Graph

95094 Commits

Author SHA1 Message Date
Vladimir Dolzhenko bd085fbf43 Optimize isDefinitelyNotSamInterface
Do not generate intermediate garbage and no reason to iterate over
all non-SAM candidates when more than one found

#KTIJ-23032
2022-09-27 15:17:27 +00:00
Vladimir Dolzhenko b2b88662d8 Clean up
#KTIJ-23032
2022-09-27 15:17:27 +00:00
Vladimir Dolzhenko a32c660a67 Optimize contributedDescriptors
Take kindFilters into account on early stage.

#KTIJ-23032
2022-09-27 15:17:26 +00:00
Yahor Berdnikau c198d4d90d Simplify cache-redirector script apply method
Now it could be only be applied inside settings file pluginManagement
block. This will update both settings repositories and all projects in
the repo with cache redirection settings.
2022-09-27 14:04:43 +00:00
Nikolay Krasko 8af5ade2f4 Fix regular expressions in testHostSpecificSourceSetsInTransitiveDependencies
Test is now flaky because sometimes the expected names has checksum with
the `-` char.
`published-dependency-1.0-commonMain-Q-PvLQ.klib`
2022-09-27 13:15:05 +00:00
Nikolay Krasko 20fdd50cc0 Add javadoc to analysis-api-test-framework for fix publishing 2022-09-27 13:15:05 +00:00
Nikolay Krasko 54c7efe1cb Refactorings for toolchains 2022-09-27 12:49:55 +00:00
Nikolay Krasko 076125282d Define default build JVM toolchain 2022-09-27 12:49:54 +00:00
Nikolay Krasko 13a68b0e2d Explicitly define the set of environment variables needed for tests 2022-09-27 12:49:54 +00:00
Simon Ogorodnik 8799b9b751 Build: Add auto-setup of JDKs for tests based on Gradle Java Toolchains 2022-09-27 12:49:54 +00:00
Pavel Mikhailovskii 1b8a60b5a5 KT-51282 Add tests 2022-09-27 12:17:19 +00:00
Pavel Mikhailovskii ca221cc6f2 Unused import 2022-09-27 13:34:09 +02:00
Aleksei.Cherepanov be71d8841e Use case-sensitive logic in PathStringDescriptor for all platforms
This is especially needed for portable caches. Now hash counting on mac/windows is the same as logic on linux, which allows to create caches on remote servers and use them together with incremental compilation locally.

#KT-53932 Fixed
2022-09-27 11:29:22 +00:00
Alexander Udalov c410c5d3cd Do not reset freeCompilerArgs for some kotlin-native modules
Otherwise common compiler arguments which are set for all modules in the
project in `buildSrc/src/main/kotlin/common-configuration.gradle.kts`
are not applied. The most interesting of those are `-Xuse-k2` (if K2 is
enabled) and `-Xjvm-default=all`.
2022-09-27 11:04:31 +00:00
Svyatoslav Scherbina b1a26f7439 Bump Kotlin/Native version to 1.8.20-dev-204 2022-09-27 10:56:14 +00:00
Marat Akhin f73897fcea [K/N][KLIB][Tests]: mark klib binary compatibility tests as klib-abi
This is to avoid the need to change all our TC configurations to include
another test task run
2022-09-27 10:03:07 +00:00
Marat Akhin aca390263e [K/N][KLIB][Tests]: regenerate klib binary compatibility tests 2022-09-27 10:03:06 +00:00
Marat Akhin d6230a2e7b [K/N][KLIB][Tests]: support for klib binary compatibility tests on K/N
The impl supports both regular and caching testing modes.
Also add Gradle target for klib binary compatibility tests.
2022-09-27 10:03:06 +00:00
Marat Akhin 1594dd6d67 [KLIB][Tests]: fix typos in klib binary compatibility test suite 2022-09-27 10:03:05 +00:00
Alexander Shabalin 822e341d76 [K/N] Remove marker check from mark phase ^KT-54163
Markers can't appear in object fields.

Merge-request: KT-MR-7201
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com>
2022-09-27 09:08:29 +00:00
Dmitrii Gridin 64c9a9f137 AbstractResolverForProject: do not include modules info to default message
^KT-54188 Fixed
2022-09-27 08:03:53 +00:00
Nikolay Krasko cb0fc0aa6f Downgrade logger level for hacky disabling NPM/Yarn tasks 2022-09-27 07:38:23 +00:00
Sergey Bogolepov 357983389c [K/N] KT-54164
Extract CFBase.h and CFAvailability.h to CoreFoundationBase on macOS
for the sake of unification with *OS. Also, it fixes commonizer.
2022-09-26 14:35:30 +00:00
Alexander Udalov 4a00d1f978 Add internal way to enable old backend
Needed for tests on debugger in Kotlin IDE plugin.
2022-09-26 13:35:41 +00:00
Nikolay Krasko 7da7c4e0bb Distinguishable output and failure reports for gradle integrations tests 2022-09-26 12:48:28 +00:00
Nicklas Ansman Giertz b02948b5f7 KAPT: Kapt generates illegal stubs for private interface methods
Interface methods that were private got both the `default` and `private`
modifiers when using `jvm-default=all` which is not valid.

The stub will now just contain `private` in this case.

This fixes KT-48013.
2022-09-26 12:21:56 +02:00
Nicklas Ansman Giertz 1cc46ab7fa KAPT: allow setting aptMode in the maven plugin
This fixes KT-41129
2022-09-26 12:20:33 +02:00
Dmitriy Novozhilov 7ce3934cf7 [FIR] Add type resolution service into SerializationFirSupertypesExtension
This service allows resolve custom user types from plugins, which allows
  to support specifying type arguments of generated supertypes basing
  on arguments passed to annotations
2022-09-26 10:09:09 +00:00
Dmitriy Novozhilov 5461ef6172 [FIR] Add utility function for constructing user type ref on the air 2022-09-26 10:09:09 +00:00
Dmitriy Novozhilov 519f6aeff1 [FIR] Make source in qualifier parts nullable
This is needed to be able to create no-source user type refs from plugins
2022-09-26 10:09:08 +00:00
Sebastian Sellmair 2845929bc0 [Gradle][MPP] Add documentation to CompositeMetadataArtifactContent
^KT-54135 Verification Pending
2022-09-26 08:18:19 +00:00
pyos 2dd49e5fb4 JVM_IR: unwrap suspend views when generating SAM wrappers
If the super class is in a file that has already been lowered, the base
method has an extra continuation parameter which breaks things.

Also, SAM wrappers around functional objects are tail-call and do not
need continuations ever, so don't even try.

^KT-50950 Fixed
2022-09-23 21:55:00 +02:00
Yahor Berdnikau 309c57f860 Update Gradle plugins common Gradle API version to 7.5
^KT-54142 Fixed
2022-09-23 15:36:53 +00:00
Alexander Shabalin f009d9b633 [K/N] Manually compact mimalloc heap ^KT-53182
Merge-request: KT-MR-7111
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com>
2022-09-23 15:07:16 +00:00
Sergey.Shanshin 9210108d5a Added test on Serializable(with=...) in K2 2022-09-23 11:56:19 +00:00
Pavel Kargashinsky 221043a74d kargashinsky/mute-unresolved-target-tests-mac
[Gradle][Tests] Fix CommonNativeIT testData

[Gradle][Tests] Mute 2 native tests on Mac host

- Since 1.7.20 kotlinVersion Mac host can compile all native targets,
so tests with "unsupported targets" on Mac are obsolete.

Merge-request: KT-MR-7133
Merged-by: Pavel Kargashinsky <Pavel.Kargashinsky@jetbrains.com>
2022-09-23 09:59:18 +00:00
konstantin.tskhovrebov dfbdafeb3c [KT-51517] Mute ConfigurationCacheIT.testCommonizer due configuration cache issue. 2022-09-23 08:06:53 +00:00
konstantin.tskhovrebov c9184c6781 [KT-51517] Pass external cinterop dependencies to Commonizer. 2022-09-23 08:06:53 +00:00
Pavel Mikhailovskii a209098a6c KT-8575 Enable ReferencesToSyntheticJavaProperties in 1.9 2022-09-22 20:20:55 +00:00
Alexander Udalov ba150ca370 Add JVM target bytecode version 19
Test data in `box/annotations/typeAnnotations` is changed because nested
classes in type annotations are rendered differently in JDK 19
(`Outer.Nested` instead of `Outer$Nested`).

 #KT-54116 Fixed
2022-09-22 21:56:10 +02:00
Alexander Udalov 8757988037 Minor, generate trailing comma in enums in Gradle compiler types
This both simplifies the generator code and makes the generated code
conform to the style guide (see
https://kotlinlang.org/docs/coding-conventions.html#trailing-commas), in
particular it improves version control diffs for generated enums.
2022-09-22 21:56:10 +02:00
Ilmir Usmanov 3ee09f05ef JVM: Check for multiple {POP, Unit} sequences in suspend function TCO
We already check for {POP, Unit} sequence before ARETURN, but if the
there are multiple sequence before ARETURN, the compiler assumes, that
TCO misses.

The fix is to check, that the instruction after the sequence is either
ARETURN or another {POP, Unit} sequence.

 #KT-50835
 #KT-54152 Fixed
2022-09-22 19:46:52 +02:00
Alexander Likhachev 45b608e195 [Gradle] Move default variant implementations registration upwards
Now default variant implementations are being registered in DefaultKotlinBasePlugin, allowing to test KGP api without dealing with variant factories
2022-09-22 17:04:23 +00:00
Alexander Likhachev 749d9f51d1 [Gradle] Remove direct Provider.forUseAtConfigurationTime calls
#KT-53823 Fixed
2022-09-22 17:04:23 +00:00
Alexander Likhachev 9d8df8eb5e [Gradle] Introduce ConfigurationTimePropertiesAccessor
#KT-53823 In Progress
2022-09-22 17:04:23 +00:00
Yahor Berdnikau ad44ee8904 Fix syncing languageSettings for KotlinNativeLink task
Task registration may happen within another configuration call leading
to prohibited 'afterEvaluate {}' block error. Fixed it by moving out
sync to separate configuration call.

^KT-54113 Fixed
2022-09-22 17:03:38 +00:00
Artem Kobzar d7ef5efa6a [K/JS] Remove ligature that breaks map files comparison pipeline (hack for KT-50589 issue) 2022-09-22 16:03:14 +00:00
Artem Kobzar 2081dc327c [K/JS] Trick-out the D8 bug related to a long path on Windows 2022-09-22 15:22:00 +00:00
Vsevolod Tolstopyatov 137e5d67d0 Scrupulously document OptIn-related annotations
#KT-49425

Merge-request: KT-MR-7094
Merged-by: Vsevolod Tolstopyatov <qwwdfsad@gmail.com>
2022-09-22 13:57:45 +00:00
Artem Kobzar 39a44d4ccb [K/JS] Add lateinit as exception for simple properties ^KT-53968 Fixed 2022-09-22 13:50:51 +00:00