Nikita Nazarov
407448d8e3
[JVM] Implement new inlined variable naming format
...
^KT-65478 fixed
2024-02-23 23:59:13 +01:00
Pavel Mikhailovskii
7ab9e03347
KT-65684: KAPT: (Re)enable fallback to K1 KAPT and make it default
...
[KAPT] KT-65684 Set languageVersion=1.9 in KaptToolIntegrationTestGenerated
[KAPT] KT-65684 Re-enable a few now-passing tests in Kapt4IT
[KAPT] KT-65684 Fix the logic setting -Xuse-kapt4 flag in Kapt4IT.forceKapt4()
The change is needed to make sure that all the tests have the flag set,
otherwise some of them would silently switch to the fallback node.
Also disables a few now failing tests.
[KAPT] KT-65684 Revert "KT-64385 Enable K2 KAPT by default"
This reverts commit 7e9d6e60
Merge-request: KT-MR-14291
Merged-by: Pavel Mikhailovskii <Pavel.Mikhailovskii@jetbrains.com >
2024-02-09 12:54:28 +00:00
Roman Efremov
1f30d076de
[CLI] Introduce compiler argument to suppress error about API version
...
...greater than language version.
^KT-63712
2024-02-09 11:02:26 +00:00
Alexander Udalov
77dba281a3
CLI: remove obsolete -Xbuiltins-from-sources
...
Looks like it has no effect anymore after 3f2e996803 .
2024-02-01 23:37:23 +00:00
Alexander Udalov
2d308e7c27
CLI: remove obsolete language feature arguments
...
These arguments switch language features which cannot be disabled
anymore because they're enabled from some LV not later than 1.4, and the
minimal supported LV is currently 1.4.
2024-02-01 23:37:23 +00:00
Alexander Udalov
c2e67619ba
CLI: remove obsolete -Xdisable-ultra-light-classes
2024-02-01 23:37:23 +00:00
Alexander Udalov
9d5e1bdc47
CLI: remove obsolete -Xallow-result-return-type
2024-02-01 23:37:23 +00:00
Alexander Udalov
49c659b379
CLI: remove obsolete -Xdump-declarations-to
...
It was only used in the very old version of binary compatibility
validator. It was never supported in the JVM IR backend.
2024-02-01 23:37:23 +00:00
Sergej Jaskiewicz
e8aa05928d
[FIR2IR] Unconditionally disable linkViaSignatures on JVM
...
It was an experimental compilation mode that we don't need anymore.
KT-64809
2024-01-19 13:35:59 +00:00
strangepleasures
7e9d6e601d
KT-64385 Enable K2 KAPT by default
...
Also adds support for front-end compiler plugins in Kapt
2024-01-15 10:22:32 +00:00
Kirill Rakhman
4964ee12a9
[CLI] Update CLI argument descriptions after review
2023-11-17 14:36:28 +00:00
Stanislav Erokhin
0cfa721585
[KMP] Remove experimental from -Xmulti-platform flag
...
#KT-61686
2023-10-04 18:19:35 +00:00
Dmitriy Dolovov
78a962f6d2
[KLIB] Deprecate -Xexpect-actual-linker CLI argument
...
This argument has been finally superseded by `-Xmetadata-klib`.
^KT-61136
2023-10-02 16:21:17 +00:00
Dmitriy Dolovov
848c88b1a5
[KLIB] Lift up -Xmetadata-klib CLI key from Native to Common args
...
This is a precondition for obsoleting and finally removing
`-Xexpect-actual-linker` CLI key, which became useless since
the removal of ExpectActualTable.
^KT-61136
2023-09-20 22:26:36 +00:00
Alexander Udalov
fd68b9f49c
CLI: add -Xuse-ir-fake-override-builder
...
To be able to test IR fake override builder (KT-61514) outside of
compiler tests.
2023-09-13 15:01:52 +02:00
Nikita Bobko
2127b2ce68
expect/actual classes: experimental -> Beta
...
KT-61573
^KT-61712 Fixed
Review: https://jetbrains.team/p/kt/reviews/12044/files
It's a follow up commit
According our guidelines, it must be in Beta
https://kotlinlang.org/docs/components-stability.html#stability-of-subcomponents
And the whole multiplatform was in Beta, so we can't make part of the
multiplatform to have lower stability level
2023-09-11 13:57:28 +00:00
Nikita Bobko
01fc708a0f
Mark expect/actual classifiers as experimental
...
^KT-61573 Fixed
Review: https://jetbrains.team/p/kt/reviews/11969/timeline
Tests:
- MultiPlatformIntegrationTestGenerated
- CliTestGenerated
- MultiPlatformIntegrationTestGenerated
- DiagnosticTestGenerated.Multiplatform
- FirLightTreeOldFrontendDiagnosticsTestGenerated
Also add -Xexpect-actual-classes flag to all necessary ./libraries/* modules
Otherwise compilation of those modules failes because of `-Werror`
2023-09-04 12:21:37 +00:00
Kirill Rakhman
969c716c76
[FIR] Implement flag for disabling warning on error suppression
...
#KT-61129
2023-08-18 13:29:20 +00:00
Alexander Udalov
d4b5599373
Add JVM target bytecode version 21
...
Unfortunately, there are still problems with running JVM backend tests
with JVM target 21 because:
1) The D8 version that we use does not support bytecode version 21, and
updating to a newer version requires to change JVM target of compiler
tests to 11. This will be addressed separately when we enable JVM 21
in tests-different-jdk.
2) Some tests are failing because of KT-60659 and KT-60770:
- builtinStubMethods/bridgesForStubs/emptyStringListAdd.kt
- jdk/stream.kt
- regressions/kt528.kt
#KT-60662 Fixed
2023-08-03 08:43:22 +00:00
Pavel Mikhailovskii
083f54aceb
[KAPT4] Create basic infrastructure for KAPT4
2023-07-07 11:09:16 +00:00
Alexander Udalov
530f533c84
K2 CLI: minor, remove misleading warning
...
Light tree is used by default now, so it's no longer far from being
production-ready.
2023-06-21 14:16:43 +00:00
Pavel Mikhailovskii
fc7af2c9e0
KT-58720 Generate full InnerClass attributes for the standard library; deprecate -Xuse-old-innerclasses-logic
2023-06-09 11:31:17 +00:00
Alexander Udalov
60016d3e5b
Remove obsolete compiler flag -Xuse-ir
2023-05-30 14:46:09 +00:00
Alexander Udalov
a0790047f7
JvmDefault: remove -Xjvm-default modes "enable" and "compatibility"
...
#KT-54746
2023-04-25 14:33:00 +00:00
Alexander Udalov
37c776b233
Add JVM target bytecode version 20
...
#KT-57495 Fixed
2023-03-30 19:05:41 +00:00
Ivan Kylchik
5d5582d201
Move ignoreConstOptimizationErrors compiler key from jvm to common
...
#KT-56023
2023-03-24 15:55:03 +00:00
Ivan Kylchik
1c210822ea
Add new configuration key that can enable IR inlining for JVM
2023-03-14 20:47:41 +00:00
Sebastian Sellmair
b90207edb9
[Gradle] Rename -Xdepends-on to -Xfragment-refines and use ':' for -Xfragment-sources instead of ';'
...
^KT-56210 Verification Pending
2023-03-01 16:30:44 +00:00
Sebastian Sellmair
21bf497830
[CLI] Replace K2 -Xmodule by -Xfragments and -Xfragment-sources
...
KT-56210
2023-03-01 16:30:41 +00:00
Dmitriy Novozhilov
94faa759cb
[CLI] Rename -XdependsOn flag to -Xdepends-on to keep convention
...
^KT-56209
2023-02-17 14:09:30 +00:00
Dmitriy Novozhilov
77caa31640
[CLI] Add CLI arguments to pass HMPP module structure to the compiler
...
^KT-56209
2023-02-17 11:08:50 +00:00
Alexander Udalov
3f2b51151f
Remove -Xexclude-from-dumping
...
Apparently the underlying logic was removed in b07690fccf and no one
noticed.
2023-01-02 15:26:07 +00:00
Evgeniy.Zhelenskiy
25db5bf6e1
[IR] Enable -Xvalue-classes flag
...
Signed-off-by: Evgeniy.Zhelenskiy <Evgeniy.Zhelenskiy@jetbrains.com >
#KT-1179
2022-12-22 12:24:16 +00:00
Artem Kobzar
9a4a30c9bb
[K/JS] Add flag for disabling signature uniqueness checks at klib generating phase
2022-10-14 13:08:58 +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
7dad47cd76
Add -X argument to disable generation of @SourceDebugExtension
...
This will be used in tests in the subsequent commit.
2022-09-09 14:32:35 +02:00
Pavel Mikhailovskii
6a14400342
KT-53804 Restore old and incorrect logic of generating InnerClasses attributes for kotlin-stdlib
2022-09-05 14:02:52 +00:00
Alexander Udalov
a76de14026
Remove obsolete compiler argument -Xsingle-module
...
#KT-51622
2022-08-31 20:54:50 +02:00
Alexander Udalov
690322b203
Add flag -Xno-new-java-annotation-targets
...
Do not generate TYPE_USE/TYPE_PARAMETER Java annotation targets when
this flag is specified.
#KT-53712 Fixed
2022-08-29 13:43:49 +02:00
Ivan Kylchik
3027ea9551
Add new jvm compilation key ignoreConstOptimizationErrors
...
This key suppose to be a workaround in keys if something goes
wrong in ir interpreter.
2022-08-18 16:50:06 +00:00
Dmitriy Novozhilov
928416c9c5
[CLI] Introduce new compiler arguments for registering compiler plugins
...
With new syntax each plugin should be registered in separate argument with syntax
`-Xcompiler-plugin=classpath1,classpath2[=argument1=value1,argument2=value2]`
2022-07-20 09:07:26 +00:00
Nikita Nazarov
7287be6879
Add tests on variable spilling with debug mode enabled
...
#KT-48678 Fixed
2022-07-07 14:51:24 +03:00
Nikolay Krasko
d080297c20
Revert "Add tests on variable spilling with debug mode enabled"
...
This reverts commit 65bb6abae4 .
2022-07-05 11:04:50 +00:00
Nikita Nazarov
65bb6abae4
Add tests on variable spilling with debug mode enabled
...
#KT-48678 Fixed
2022-07-02 18:29:18 +03:00
Alexander Udalov
2a9fd47755
Minor, update JVM target versions in -Xjdk-release help
2022-06-17 10:40:35 +00:00
Ilya Chernikov
855059b93c
Scripting: update scripts in source roots handling
...
#KT-52525 fixed
related to #KT-52735
2022-06-16 21:28:06 +00:00
Simon Ogorodnik
58885a1b07
KT-52217 Rename 'use-fir' to 'use-k2', update message
2022-04-28 15:42:42 +00:00
Alexander Udalov
2e515f3945
Prohibit JVM target 1.6
...
But still compile stdlib, reflect, kotlin.test and scripting runtimes
with JVM target 1.6 to simplify migration from Kotlin 1.6 to 1.7.
#KT-45165 Fixed
2022-04-19 22:54:40 +02:00
Alexander Udalov
6402c3908c
Validate -Xbackend-threads CLI argument value
...
#KT-51846 Fixed
2022-04-08 14:01:21 +02:00
Ilya Chernikov
a239f02a30
Add cli argumens for FIR "tight" IC and LightTree usage
2022-03-30 08:32:03 +00:00