Skip to content

Commit

Permalink
Merge PR #346: Various little bits of maintenance
Browse files Browse the repository at this point in the history
  • Loading branch information
smarr authored Apr 11, 2020
2 parents 21c08a6 + bca2d49 commit c3a2773
Show file tree
Hide file tree
Showing 6 changed files with 95 additions and 90 deletions.
42 changes: 22 additions & 20 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
xmlns:unless="ant:unless"
xmlns:if="ant:if"
xmlns:jacoco="antlib:org.jacoco.ant">

<property name="jvmci.version" value="jvmci-19.3-b04" />
<property name="jdk8.version" value="232" />

Expand All @@ -27,7 +27,7 @@
<condition property="home.ext" value="/Contents/Home" else="">
<os family="mac"/>
</condition>

<travis target="env" start="Environment" />
<echo>
ant.java.version: ${ant.java.version}
Expand All @@ -46,9 +46,9 @@
<property name="kompos.dir" value="tools/kompos" />
<property name="corelib.dir" location="core-lib" />
<property name="graal.dir" location="${lib.dir}/truffle/compiler" />
<property name="truffle.dir" location="${lib.dir}/truffle/truffle" />
<property name="sdk.dir" location="${lib.dir}/truffle/sdk" />
<property name="tools.dir" location="${lib.dir}/truffle/tools" />
<property name="truffle.dir" location="${lib.dir}/truffle/truffle" />
<property name="svm.dir" location="${lib.dir}/truffle/substratevm" />
<property name="compiler.build" location="${graal.dir}/mxbuild/dists/jdk1.8" />
<property name="sdk.build" location="${sdk.dir}/mxbuild/dists/jdk1.8" />
Expand Down Expand Up @@ -79,11 +79,11 @@
<pathelement location="${classes.dir}" />
<pathelement location="${bd.dir}/build/classes" />
<pathelement location="${lib.dir}/somns-deps.jar" />

<pathelement location="${svm.build}/svm-core.jar" />
<pathelement location="${tools.build}/truffle-profiler.jar" />
</path>

<path id="som.cp">
<path refid="boot.cp"/>
<path refid="common.cp"/>
Expand All @@ -92,7 +92,7 @@
<pathelement location="${sdk.build}/word-api.jar" />
<pathelement location="${sdk.build}/polyglot-tck.jar" />
<pathelement location="${lib.dir}/somns-deps-dev.jar" />


<pathelement location="${truffle.build}/truffle-debug.jar" />
<pathelement location="${truffle.build}/truffle-dsl-processor.jar" />
Expand All @@ -101,7 +101,7 @@

<available file="${truffle.dir}" type="dir" property="truffle.present"/>
<available file="${jvmci.home}" type="dir" property="jvmci.home.present" />

<condition property="truffle.and.jvmci.present">
<and>
<available file="${truffle.dir}" />
Expand All @@ -116,12 +116,12 @@
<delete dir="${src_gen.dir}"/>
<ant dir="${corelib.dir}/TestSuite/extension" useNativeBasedir="true" target="clean" inheritAll="false" />

<travis target="clean" />
<travis target="clean" />
</target>

<target name="clean-truffle" if="truffle.and.jvmci.present">
<travis target="clean-truffle" start="clean-truffle" />

<exec executable="${mx.cmd}" dir="${svm.dir}">
<arg value="--dynamicimports"/>
<arg value="../truffle,../tools,../compiler,../sdk"/>
Expand All @@ -134,29 +134,29 @@

<target name="clobber" description="Do clean, and also clean truffle build" depends="clean,clean-truffle">
<travis target="clobber" start="clobber" />

<exec executable="${mx.cmd}" dir="${svm.dir}" failonerror="true" if:true="${truffle.and.jvmci.present}">
<arg value="--dynamicimports"/>
<arg value="../truffle,../tools,../compiler,../sdk"/>
<arg value="fsckprojects"/>
<env key="JAVA_HOME" value="${jvmci.home}" />
</exec>

<delete dir="${kompos.dir}/out"/>
<delete dir="${kompos.dir}/node_modules"/>
<ant dir="${bd.dir}" useNativeBasedir="true" target="clean" inheritAll="false"/>

<travis target="clobber" />
</target>

<target name="truffle-submodule"
<target name="truffle-submodule"
unless="truffle.present">
<exec executable="./.gitloadmodules" failonerror="true">
</exec>
</target>

<target name="truffle-libs" unless="skip.truffle" depends="jvmci-libs,truffle-submodule">
<travis target="truffle-libs" start="Build Truffle" />
<travis target="truffle-libs" start="Build Truffle and Graal" />
<exec executable="${mx.cmd}" dir="${svm.dir}" failonerror="true">
<arg value="--dynamicimports"/>
<arg value="../truffle,../tools,../compiler,../sdk"/>
Expand All @@ -169,6 +169,7 @@

<target name="bd-libs"> <!-- implicit dependency on truffle-libs -->
<travis target="bd-libs" start="Build Black Diamonds" />

<ant dir="${bd.dir}" useNativeBasedir="true" target="libs-junit" inheritAll="false">
<property name="force.java8" value="${is.atLeastJava9}" />
</ant>
Expand All @@ -178,6 +179,7 @@
<property name="truffle.build" value="${truffle.build}" />
<property name="force.java8" value="${is.atLeastJava9}" />
</ant>

<travis target="bd-libs" />
</target>

Expand All @@ -189,7 +191,7 @@
<arg value="eclipseinit"/>
</exec>
</target>

<target name="jvmci-libs">
<get src="https://github.com/graalvm/openjdk8-jvmci-builder/releases/download/${jvmci.version}/openjdk-8u${jdk8.version}-${jvmci.version}-${kernel}.tar.gz"
usetimestamp="true"
Expand All @@ -199,7 +201,7 @@
<arg line="-C ${lib.dir}/jvmci -xzf ${lib.dir}/jvmci.tar.gz --strip 1"/>
</exec>
</target>

<target name="jvmci-home">
<echo>${jvmci.home}</echo>
</target>
Expand All @@ -214,7 +216,7 @@
dest="${lib.dir}/somns-deps-dev.jar" />
<travis target="som-libs" />
</target>

<target name="libs" depends="truffle-libs,som-libs,bd-libs" unless="skip.libs" />

<target name="source" description="Download Source Jars for development">
Expand Down Expand Up @@ -446,7 +448,7 @@
<exec executable="tests/superinstructions/test.sh" failonerror="true"></exec>
<travis target="si-tests" />
</target>

<target name="update-test-data" depends="compile-som" description="Updates the test data for DynamicMetrics and SuperInstructions">
<exec executable="tests/dym/test.sh" failonerror="true">
<arg value="update" />
Expand Down Expand Up @@ -547,9 +549,9 @@
<arg line="--macro:truffle --no-fallback --initialize-at-build-time -H:+ReportExceptionStackTraces" />
<arg line="-H:-ThrowUnsafeOffsetErrors" />
<arg line="-Dbd.settings=som.vm.VmSettings" />

<!-- <arg line="-H:+PrintRuntimeCompileMethods" /> -->
<!-- <arg line="-H:+PrintMethodHistogram" />
<!-- <arg line="-H:+PrintMethodHistogram" />
<arg line="-H:+RuntimeAssertions" />
<arg line="-H:+EnforceMaxRuntimeCompileMethods" /> -->

Expand Down
2 changes: 1 addition & 1 deletion core-lib/TestSuite/BasicInterpreterTests/MethodCall.ns
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ class MethodCall = ()():(
public test = (
^ self test2
)

public test2 = ( ^ 42 )
)
Loading

0 comments on commit c3a2773

Please sign in to comment.