https://kotlinlang.org logo
#kontributors
Title
# kontributors
m

mcpiroman

03/03/2023, 10:13 PM
I try to run
:compiler:tests-common-new:test
on current kotlin master, but I get
> Task :kotlin-stdlib-js:compileKotlin2Js FAILED
e: Old Kotlin/JS compiler is no longer supported. Please migrate to the new JS IR backend
Secondly, as this seems to involve JS part, what if I only want to test JVM-IR backend? JS- tasks should not be required for this after all.
d

dmitriy.novozhilov

03/04/2023, 10:56 AM
Try to perform clean build (
gdw clean dist --no-build-cache
) Also I suggest to rebase on latest master and kill all kotlin daemons before running gradle
m

mcpiroman

03/04/2023, 12:34 PM
Wow, the repo recompiled in only half an hour, instead of 3h as I remember it. Does it maybe use K2 by default? Or maybe the
dist
task simply does less then
assemble
🤔
d

dmitriy.novozhilov

03/04/2023, 12:44 PM
only half an hour, instead of 3h
Holly-Molly, for me clean build takes 5-7 minutes without K2 (if Native modules are disabled) Actually, I have no idea what
assemble
does, we don't use this task in production
dist
creates executable distributive of
kotlinc
Also you can use
install/publish
tasks fro publishing maven artifacts (first one puts them into
~/.m2
and second one into
./build/repo
Does it maybe use K2 by default?
K2 compilation is disabled by default, but you can turn it on by adding
kotlin.build.useFir=true
into
local.properties
👀 1
15 Views