Commit Graph

87184 Commits

Author SHA1 Message Date
Victor Petukhov 3e1b416a54 Move resolvedCallUtil.kt under the resolve.util package 2021-09-27 16:11:59 +03:00
Victor Petukhov 6082d681b6 Rename the old inference ResolutionCandidate to OldResolutionCandidate 2021-09-27 16:11:58 +03:00
Roman Artemev 623f273251 [JS IR] Fix external vararg if its argument is suspend call
- Fix KT-47811
2021-09-27 15:13:04 +03:00
Roman Artemev 6efba76a06 [JS] Add test for KT-47811 2021-09-27 15:13:03 +03:00
Ilya Matveev 3d9966818d [Gradle] Add tests for K/N binary options 2021-09-27 11:53:12 +00:00
Ilya Matveev cbe5dc40ef [Gradle] Improve UP-TO-DATE checks for K/N binary options 2021-09-27 11:53:11 +00:00
Ilya Matveev 6ad9af972e [Gradle] Move K/N binary options retrieving to PropertiesProvider 2021-09-27 11:53:11 +00:00
sebastian.sellmair 7f67ce96a0 [Gradle, MPP] CInteropProcess: Relax up-to-date condition to "outputFile.exists"
^KT-48882 Verification Pending
2021-09-27 11:17:20 +00:00
sebastian.sellmair dcd19f41b9 [Gradle, MPP] Only warn on failed cinterop generation during idea sync
^KT-48882 Verification Pending
2021-09-27 11:17:20 +00:00
sebastian.sellmair 52c6713fff [Gradle] Implement CInteropIdeaSyncIT to cover ^KT-48882 2021-09-27 11:17:19 +00:00
Elena Lepilkina ffaaadcfb6 [K/N][perf] Added gradle annotations for build register task 2021-09-27 10:58:51 +00:00
Vyacheslav Gerasimov d200edbb89 Build: Specify duplicatesStrategy for :kotlin-reflect:modularJar
As a workaround for #KTI-653
2021-09-27 13:16:29 +03:00
Alexander Shabalin 34c89d855a [K/N] Improve logging with multithreading 2021-09-27 09:56:10 +00:00
Sergey Bogolepov ed4fa2c391 [K/N] Fix for KT-48807
Make NS_FORMAT_ARGUMENT(A) a no-op in cinterop because our
Clang doesn't support it for NSAttributedString.
2021-09-27 09:38:02 +00:00
Sergey Bogolepov fd71520d6e Add test for KT-48807 2021-09-27 09:38:01 +00:00
Yahor Berdnikau 8b594e295c Don't validate JVM target on empty Java sources.
When toolchain is not configured, Kotlin sets by default JVM target to
"1.8". Compiling Kotlin project on JDK 9+ produces JVM target mismatch
warning even if Java sources are empty.

Skip the jvm validation check if associated Java task sources are empty.

^KT-48745 Fixed
2021-09-27 08:31:00 +00:00
Sergey Bogolepov 708931b404 [K/N][Gradle] Use build service to read konan.properties
Also pass additionalCacheFlags when compiling compiler caches.
2021-09-27 11:21:25 +03:00
Alexander Shabalin 84e7b53926 [K/N] Rework GCScheduler to schedule GC on its own. 2021-09-27 08:03:55 +00:00
Alexander Shabalin 83b6b39910 [K/N] Fix runtime compilation flags. 2021-09-27 08:03:54 +00:00
Alexander Shabalin f4c5a047ac [K/N] Build separate common_gc for each GC. 2021-09-27 08:03:54 +00:00
Alexander Shabalin 3e8c1be5c1 [K/N] Add RepeatedTimer 2021-09-27 08:03:53 +00:00
Vyacheslav Gerasimov 12d31adbc4 Build: Fix input annotations on KonanLocalTest 2021-09-26 23:36:41 +03:00
Vyacheslav Gerasimov 1e223f8366 Build: Drop unused setupBuildCache helper 2021-09-26 23:36:41 +03:00
Vyacheslav Gerasimov c6c993aa19 Fix deprecated Gradle VersionNumber warning
Required for Gradle 7+ #KTI-559
2021-09-26 23:36:40 +03:00
Vyacheslav Gerasimov edea9b0db3 Suppress deprecated ConfigureUtil in mppPresetFunctionsCodegen.kt
Required for Gradle 7+ #KTI-559
2021-09-26 23:36:40 +03:00
Vyacheslav Gerasimov a5d31fe2e2 Build: Fix warnings in pill
Required for Gradle 7+ #KTI-559
2021-09-26 23:36:40 +03:00
Vyacheslav Gerasimov 8b5db6473b Fix deprecated ConfigureUtil usages in KGP
Required for Gradle 7+ #KTI-559
2021-09-26 23:36:40 +03:00
Yahor Berdnikau c1ba586c96 Replace removed Gradle methods with reflection call.
This is required to update Kotlin repo to Gradle 7.1.
2021-09-26 23:36:40 +03:00
Vyacheslav Gerasimov af541dc6d3 Build: Fix usages of deprecated ConfigureUtil in kotlin-native
Required for Gradle 7+ #KTI-559
2021-09-26 23:36:40 +03:00
Vyacheslav Gerasimov 2d06cf674b Build: Fix usages of deprecated convention in kotlin-native
Required for Gradle 7+ #KTI-559
2021-09-26 23:36:40 +03:00
Vyacheslav Gerasimov 8d2fafa3ce Build: Fix various warnings in build files
Required for Gradle 7+ #KTI-559
2021-09-26 20:10:29 +03:00
Vyacheslav Gerasimov 5d6e8e42aa Build: Update verification metadata 2021-09-26 20:10:29 +03:00
Vyacheslav Gerasimov 10abdbef1c Build: Fix kotlin-native tasks input annotations
Required for Gradle 7+ #KTI-559
2021-09-26 20:10:29 +03:00
Vyacheslav Gerasimov d9444da9b5 Build: Fix NativeInteropPlugin for Gradle 7
Required for Gradle 7+ #KTI-559
2021-09-26 20:10:29 +03:00
Vyacheslav Gerasimov f91d6958a8 Build: Rework runtimeJar helper and drop redundant configuration
#KTI-559
2021-09-26 20:10:29 +03:00
Vyacheslav Gerasimov ab146bd6d4 Build: Fix deprecated Gradle configurations usages
for migration to Gradle 7+ #KTI-559
2021-09-26 18:28:44 +03:00
Vyacheslav Gerasimov dbedff3c62 Build: Move build cache configuration to settings.gradle
#KTI-559
2021-09-26 18:17:54 +03:00
Vyacheslav Gerasimov 997bde056f Build: Upgrade Gradle to 7.1.1
#KTI-559
2021-09-26 18:17:54 +03:00
Dmitriy Novozhilov e483b9b52b Advance bootstrap to 1.6.20-dev-2497 2021-09-24 22:19:43 +03:00
Nikolay Lunyak 1a9f63efeb [FIR] Fix INSTANCE_ACCESS_BEFORE_SUPER_CALL 2021-09-24 16:50:51 +00:00
Nikolay Lunyak 9790b81f38 [FIR] Fix missing REDUNDANT_VISIBILITY_MODIFIER 2021-09-24 16:48:51 +00:00
Ilya Gorbunov 7666377565 Control Duration init block assertions on JVM with -ea option
On other platforms enable them unconditionally
2021-09-24 16:17:54 +00:00
Ilya Gorbunov 21a9198fff Bring back Duration construction extensions KT-46229
Return the extension properties for constructing Duration from numbers,
but this time place them in Duration.Companion rather than on top-level.

- provide the new set of construction extension properties
  in companion of Duration
- leave top-level extension properties experimental,
  increase their deprecation level to ERROR,
  propose the extension properties in companion instead.
- leave Duration companion static factory functions experimental,
  deprecate them and propose the extension properties in companion instead.
2021-09-24 16:17:53 +00:00
Ilya Gorbunov 96611de344 Stabilize Duration, DurationUnit and related top-level functions KT-46784
Co-authored-by: Abduqodiri Qurbonzoda <abduqodiri.qurbonzoda@jetbrains.com>
2021-09-24 16:17:53 +00:00
Jinseong Jeon ad18343413 FIR: resolve types in accessors when not resolving accessors 2021-09-24 18:56:23 +03:00
sebastian.sellmair c51d37d65d [Gradle] [MPP] CInteropPropagatedDependencies: Consider associate compilations
^KT-48856 Verification Pending
2021-09-24 13:13:01 +00:00
sebastian.sellmair e7d8804bdf [Gradle] [MPP] Implement integration test to cover ^KT-48856 2021-09-24 13:13:00 +00:00
Dmitry Petrov 9799ad7bd8 Make optimized loop over unsigned array, indices, withIndex JVM-specific 2021-09-24 12:12:43 +03:00
Dmitry Petrov be28b3c74d JVM_IR KT-29822 KT-48669 loop over unsigned array, indices, withIndex 2021-09-24 12:12:42 +03:00
Dmitry Petrov 2cc6b589f3 JVM_IR KT-48640 generate for-in-downTo as a counter loop 2021-09-24 12:12:41 +03:00