Run preloader in new-kotlinc, fix reflect->runtime class-path reference
This commit is contained in:
committed by
Pavel V. Talanov
parent
9ea0c999fc
commit
444b461ba7
@@ -634,7 +634,16 @@
|
||||
<then>
|
||||
<copy file="${bootstrap.runtime}" tofile="${kotlin-home}/lib/kotlin-runtime-internal-bootstrap.jar"/>
|
||||
<copy file="${bootstrap.reflect}" tofile="${kotlin-home}/lib/kotlin-reflect-internal-bootstrap.jar"/>
|
||||
<jar destfile="${kotlin-home}/lib/kotlin-reflect-internal-bootstrap.jar" update="true">
|
||||
<manifest>
|
||||
<attribute name="Class-Path" value="kotlin-runtime-internal-bootstrap.jar"/>
|
||||
</manifest>
|
||||
</jar>
|
||||
</then>
|
||||
<else>
|
||||
<copy file="${bootstrap.runtime}" todir="${kotlin-home}/lib"/>
|
||||
<copy file="${bootstrap.reflect}" todir="${kotlin-home}/lib"/>
|
||||
</else>
|
||||
</if>
|
||||
|
||||
<jar jarfile="${output}/kotlin-compiler-for-maven.jar">
|
||||
@@ -740,14 +749,16 @@
|
||||
<local name="src.line"/>
|
||||
<pathconvert property="src.line" refid="src.dirset" pathsep=" "/>
|
||||
|
||||
<java classname="org.jetbrains.kotlin.cli.jvm.K2JVMCompiler" failonerror="true" fork="true" maxmemory="${max.heap.size.for.forked.jvm}">
|
||||
<java classname="org.jetbrains.kotlin.preloading.Preloader" failonerror="true" fork="true" maxmemory="${max.heap.size.for.forked.jvm}">
|
||||
<classpath>
|
||||
<file file="${bootstrap.runtime}"/>
|
||||
<pathelement location="${kotlin-home}/lib/kotlin-compiler.jar"/>
|
||||
<pathelement location="${kotlin-home}/lib/kotlin-preloader.jar"/>
|
||||
</classpath>
|
||||
<assertions>
|
||||
<enable/>
|
||||
</assertions>
|
||||
<arg value="${kotlin-home}/lib/kotlin-compiler.jar"/>
|
||||
<arg value="org.jetbrains.kotlin.cli.jvm.K2JVMCompiler"/>
|
||||
<arg line="4096 notime"/>
|
||||
<arg line="${src.line}"/>
|
||||
<arg value="-d"/>
|
||||
<arg value="@{output}"/>
|
||||
@@ -831,6 +842,8 @@
|
||||
<element name="jar-content"/>
|
||||
|
||||
<sequential>
|
||||
<delete file="${kotlin-home}/lib/@{jar-name}" failonerror="false"/>
|
||||
|
||||
<jar destfile="${kotlin-home}/lib/@{jar-name}" duplicate="fail">
|
||||
<jar-content/>
|
||||
<zipfileset file="${kotlin-home}/build.txt" prefix="META-INF"/>
|
||||
|
||||
Reference in New Issue
Block a user