Roman Artemev
ea543eac13
[IC KLIB] Fix after rebase
2019-11-08 14:14:59 +03:00
Roman Artemev
a91ed694bf
[IC KLIB] Use new klib argument
2019-11-08 14:14:59 +03:00
Alexey Tsvetkov
d776e92111
Use Klib JS serializer protocol for IC
2019-11-08 14:14:58 +03:00
Alexey Tsvetkov
83f060ad3e
Minor: add functions to distinguish initial and incremental builds when debugging IC tests
2019-11-08 14:14:57 +03:00
Alexey Tsvetkov
537199e0fa
Minor: replace UsefulTestCase with KtUsefulTestCase
...
UsefulTestCase does not resolve in IDE for some reason
2019-11-08 14:14:57 +03:00
Nikolay Krasko
155a760ee9
Revert "Revert [JS IR] commits that failed build"
...
This reverts commit 740f851a
2019-11-07 16:24:13 +03:00
Nikolay Krasko
740f851a10
Revert [JS IR] commits that failed build
...
Revert "[JS IR] Build hybrid versions of stdlib and kotlin.test"
This reverts commit b9f88350dd .
Revert "[JS IR] Add gradle plugin integration tests"
This reverts commit d872b27663 .
Revert "Update bootstrap"
This reverts commit bc47594c7a .
Revert "[JS IR] Support generating both IR and pre-IR libraries"
This reverts commit 1b8df45bfe .
2019-11-05 13:58:39 +03:00
Svyatoslav Kuzmich
1b8df45bfe
[JS IR] Support generating both IR and pre-IR libraries
...
Remove all previous -Xir options
Add:
-Xir-produce-klib-dir
-Xir-produce-klib-file
-Xir-produce-js
-Xir-only
2019-11-01 19:42:05 +03:00
Nikolay Krasko
ebf5e4b590
Mute IncrementalJsKlibCompilerRunnerTestGenerated tests (KT-34538)
...
#KT-34538 Fixed
2019-10-23 12:49:49 +03:00
Nikolay Krasko
4ed64b0283
Regenerate tests with TargetBackend.ANY remove and using runTest with this
2019-10-23 12:49:48 +03:00
Anton Bannykh
ead8379c50
JS: add -Xmetadata-only flag for JS common code modules (KT-33142 fixed)
2019-09-27 19:12:03 +03:00
Nikolay Krasko
655e77b0dd
Update lz4 for 192 in :compiler:incremental-compilation
2019-09-05 19:39:03 +03:00
Roman Artemev
d6facf2976
[JS KLIB IC] Fix test runner
2019-09-03 14:21:32 +03:00
Roman Artemev
7840cf70f0
[IC] Add missed runtime dependency
2019-09-03 14:21:32 +03:00
Alexey Tsvetkov
8e6a80bed7
Add test logs specific for IC with JS IR
...
Incremental inline will be handled during lowerings,
after all klibs are generated
2019-08-15 15:11:52 +03:00
Alexey Tsvetkov
12c209d360
Do not compare output for IC with JS IR BE
...
Temporary measure until output could be updated incrementally
2019-08-15 15:11:52 +03:00
Alexey Tsvetkov
fc49510049
Add tests for IC with JS IR BE
2019-08-15 15:11:52 +03:00
Alexander Udalov
73a671af7c
JVM IR: generate tests on incremental compilation
2019-08-05 21:27:21 +02:00
Vyacheslav Gerasimov
54222bd429
Build: compiler tests-common test runtime
2019-06-17 16:30:14 +03:00
Vyacheslav Gerasimov
33a5a3ff81
Build: Fix test runtime for incremental compilation tests
2019-06-14 17:09:36 +03:00
Vyacheslav Gerasimov
dc2a7fdc13
Build: Fix compiler tests, add missing test runtime dependencies
2019-06-14 00:35:01 +03:00
Alexey Tsvetkov
56d5846ef1
Add test for KT-31131
2019-05-29 10:23:18 +02:00
Vadim Brilyantov
01a05a5495
Move daemon jar from compiler
2019-05-17 15:51:52 +03:00
Svyatoslav Kuzmich
91d16ee947
[CLI] Extract :compiler:cli-js from :compiler:cli
2019-05-14 15:49:50 +03:00
Dmitry Gridin
37c856290f
Fix minor compile warnings
2019-04-25 19:47:39 +07:00
nikita.movshin
deb416484c
Update copyright. Fix 2 lines comments after rebase
...
Change the copyright from "JetBrains s.r.o." to
"JetBrains s.r.o. and Kotlin Project contributors"
2019-04-23 20:15:03 +03:00
nikita.movshin
65244b4bea
Update copyright.
...
Change the copyright from "JetBrains s.r.o." to
"JetBrains s.r.o. and Kotlin Project contributors"
Update only 2 lines copyright.
2019-04-23 20:09:22 +03:00
Alexey Tsvetkov
77d74a261d
Rename SourceFileToPathConverter->FileToPathConverter
2019-04-22 15:27:58 +03:00
Alexey Tsvetkov
00de7b6c44
Allow customizing source file path conversion in lookup storage
2019-04-22 15:26:34 +03:00
Alexey Tsvetkov
79337a6b96
Allow customizing source file path conversion in local IC caches
2019-04-22 15:26:34 +03:00
Mikhael Bogdanov
dde28ddc52
Parallelize compiler tests
2019-04-18 13:24:58 +02:00
Ivan Gavrilovic
c85e21d43b
Incremental KAPT - pass changed classpath entries
...
Pass computed list of changed classpath names to KAPT instead
of relying on the history files to be computed by stub generation.
Also, stop generating classpath history changes during the stub generation.
This commit does not compute the actual changed classpath entries,
and that will be done in the following commits.
#KT-23880
2019-04-12 15:01:47 +03:00
Alexey Tsvetkov
0687b8eac3
Add argument to allow running compiler without sources
...
`-Xbuild-file` argument allows the compiler to run without
passing any Kotlin source file in arguments.
We have been using this property in
Kotlin Gradle plugin for a few important cases:
1. incremental compilation (to update caches when there are only removed files);
2. for KAPT (Kotlin sources don't make sense in context
of running APs).
We want to stop using `-Xbuild-file` in Kotlin Gradle plugin,
and avoid breaking the Gradle plugin or IC in other build-systems.
This change adds an argument to explicitly run
the compiler without specifying any Kotlin source file.
2019-03-25 16:39:47 +03:00
Alexey Tsvetkov
97d3d38374
Always run codegen when IC is enabled
...
We may need to run code generation when no source files are specified
for incremental compilation (to update caches & metadata)
2019-03-25 16:39:47 +03:00
Alexey Tsvetkov
5f54f67f70
Stop using -Xbuild-file in Gradle Plugin
...
#KT-27640 fixed
#KT-27778 fixed
#KT-27638 fixed
2019-03-25 16:39:47 +03:00
Ivan Gavrilovic
9f14daa682
Incremental annotation processing with KAPT
...
Add support for incremental annotation processors in KAPT. These
processors conform to https://docs.gradle.org/current/userguide/java_plugin.html#sec:incremental_annotation_processing
specification.
Support is provided by using javac compiler APIs and
recording the source file structure. At runtime, processors
are instrumented with custom Filer that is used to keep track of generated
files. In order to support classpath changes, stub generation task is
used to generated a list of changed FQCNs, and this is simply used by KAPT.
Both worker and non-worker mode are supported.
#KT-23880
2019-03-20 16:43:02 +03:00
Alexander Udalov
c730de13df
Minor, add missing copyright to compiler modules
2019-03-15 19:27:46 +01:00
Alexey Tsvetkov
f38ad0fe8a
Fix inter-project IC with new MPP for JS/JVM targets
...
#KT-26275 Fixed
#KT-29966 Fixed
2019-02-25 17:12:14 +03:00
Anton Bannykh
21cbc7b018
JS: add incremental test for local declarations change
2019-02-14 15:14:28 +03:00
Alexey Tsvetkov
dbdc7a5b07
Add verbose mode to build reports
...
#KT-12700
Verbose mode can be enabled by adding `kotlin.build.report.verbose=true`
to `gradle.properties` file.
2019-02-12 22:10:11 +03:00
Alexey Tsvetkov
01c23510c7
Print recompilation reasons in build report
2019-02-12 22:10:11 +03:00
Alexey Tsvetkov
47bb938b94
Adjust build report verbosity
2019-02-12 22:10:11 +03:00
Mikhael Bogdanov
a122cba862
Switch Kotlin project to jvm-target 1.8
...
#KT-29405
2019-01-31 07:43:05 +01:00
Sergey Rostov
f35185b261
Build: remove explicit dependencies to org.jetbrains.annotations
2019-01-28 13:43:08 +03:00
Sergey Rostov
0f2fb4ff82
Build: remove intellijCore/annotations.jar usages
2019-01-28 13:43:08 +03:00
Alexey Tsvetkov
9176f9b254
Fix clearing IC caches on rebuild
...
Previously IC caches in Gradle were not cleared correctly on rebuild,
because only `clean` method was called, but `flush` and `close`
were not.
2019-01-23 23:30:28 +03:00
Vyacheslav Gerasimov
f58acbeef5
Build: implement useBootstrapStdlib flag
...
Excludes stdlib projects from build and uses bootstrap stdlib artifacts
#KT-29205
2019-01-21 21:09:40 +03:00
Mikhael Bogdanov
e963c52c80
Update copyright in generated non-compiler tests
2019-01-02 13:34:03 +01:00
Sergey Rostov
883970fadb
Add explicit dependencies to nullable annotations
2018-12-26 09:07:06 +03:00
Alexey Tsvetkov
201c16ecb0
Reformat incremental-compilation-impl tests
2018-11-30 15:26:34 +03:00