Skip to content
This repository was archived by the owner on Sep 1, 2020. It is now read-only.

Commit f0dc32f

Browse files
committed
Modified build.xml so the -optimise argument wi...
Modified build.xml so the -optimise argument will reliably be seen in those situations where it was intended.
1 parent 0bd4746 commit f0dc32f

File tree

1 file changed

+30
-19
lines changed

1 file changed

+30
-19
lines changed

build.xml

Lines changed: 30 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ END-USER TARGETS
1515

1616
<target name="build-opt"
1717
description="Builds the optimised Scala compiler and library. Executables are in 'build/pack/bin'.">
18-
<property name="scalac.args.optimise" value="-optimise"/>
19-
<antcall target="build"/>
18+
<antcall target="build">
19+
<param name="scalac.args.optimise" value="-optimise"/>
20+
</antcall>
2021
</target>
2122

2223
<target name="build.optimise"><antcall target="build"/></target> <!-- for compat, remove when unused -->
@@ -28,8 +29,9 @@ END-USER TARGETS
2829
<target name="test" depends="test.done"
2930
description="Runs test suite and bootstrapping test on Scala compiler and library."/>
3031
<target name="test.optimise">
31-
<property name="scalac.args.optimise" value="-optimise"/>
32-
<antcall target="test"/>
32+
<antcall target="test">
33+
<param name="scalac.args.optimise" value="-optimise"/>
34+
</antcall>
3335
</target>
3436

3537
<target name="docs" depends="docs.done"
@@ -50,17 +52,19 @@ END-USER TARGETS
5052

5153
<target name="dist-opt"
5254
description="Makes a new optimised distribution and tests it. Will remove existing binaries and documentation.">
53-
<property name="scalac.args.optimise" value="-optimise"/>
54-
<antcall target="dist"/>
55+
<antcall target="dist">
56+
<param name="scalac.args.optimise" value="-optimise"/>
57+
</antcall>
5558
</target>
5659

5760
<target name="dist.optimise"><antcall target="optdist"/></target> <!-- for compat, remove when unused -->
5861

5962
<target name="fastdist" depends="dist.done"
6063
description="Makes a new distribution without testing it or removing partially build elements"/>
6164
<target name="fastdist.optimise">
62-
<property name="scalac.args.optimise" value="-optimise"/>
63-
<antcall target="fastdist"/>
65+
<antcall target="fastdist">
66+
<param name="scalac.args.optimise" value="-optimise"/>
67+
</antcall>
6468
</target>
6569

6670
<target name="distclean" depends="dist.clean"
@@ -82,8 +86,9 @@ END-USER TARGETS
8286

8387
<target name="replacestarr-opt"
8488
description="Replaces the Starr compiler and library by fresh, optimised ones built from current sources and tests them.">
85-
<property name="scalac.args.optimise" value="-optimise"/>
86-
<antcall target="newstarr"/>
89+
<antcall target="newstarr">
90+
<param name="scalac.args.optimise" value="-optimise"/>
91+
</antcall>
8792
</target>
8893

8994
<target name="newstarr.optimise"><antcall target="optnewstarr"/></target> <!-- for compat, remove when unused -->
@@ -109,14 +114,16 @@ END-USER TARGETS
109114
<antcall target="unlocklocker"/>
110115
</target>
111116
<target name="freshlocker.optimise">
112-
<property name="scalac.args.optimise" value="-optimise"/>
113-
<antcall target="freshlocker"/>
117+
<antcall target="freshlocker">
118+
<param name="scalac.args.optimise" value="-optimise"/>
119+
</antcall>
114120
</target>
115121

116122
<target name="replacelocker-opt"
117123
description="Replaces the Locker compiler and library by fresh, optimised ones built from current sources.">
118-
<property name="scalac.args.optimise" value="-optimise"/>
119-
<antcall target="replacelocker"/>
124+
<antcall target="replacelocker">
125+
<param name="scalac.args.optimise" value="-optimise"/>
126+
</antcall>
120127
</target>
121128

122129
<target name="newlocker.optimise"><antcall target="replacelocker"/></target> <!-- for compat, remove when unused -->
@@ -195,6 +202,7 @@ INITIALISATION
195202
============================================================================ -->
196203

197204
<target name="init">
205+
<!-- The scalac.args.optimise is selectively overridden in certain antcall tasks. -->
198206
<property name="scalac.args.optimise" value=""/>
199207
<property name="scalac.args.all" value="${scalac.args} ${scalac.args.optimise}"/>
200208
<!-- Setting-up Ant contrib tasks -->
@@ -529,9 +537,10 @@ QUICK BUILD (QUICK)
529537
</target>
530538

531539
<target name="quick.newlibs" depends="quick.lib" if="libs.outdated">
532-
<antcall target="libs.done"/>
533-
<property name="fjbg.jar" value="${build-libs.dir}/fjbg.jar"/>
534-
<property name="msil.jar" value="${build-libs.dir}/msil.jar"/>
540+
<antcall target="libs.done">
541+
<param name="fjbg.jar" value="${build-libs.dir}/fjbg.jar"/>
542+
<param name="msil.jar" value="${build-libs.dir}/msil.jar"/>
543+
</antcall>
535544
</target>
536545

537546
<target name="quick.libs" depends="quick.newlibs" unless="libs.outdated">
@@ -1589,8 +1598,10 @@ FORWARDED TARGETS FOR NIGHTLY BUILDS
15891598
============================================================================ -->
15901599

15911600
<target name="nightly">
1592-
<!-- disabled until problems are fixed <property name="scalac.args.optimise" value="-optimise"/> -->
1593-
<antcall target="nightly-nopt"/>
1601+
<antcall target="nightly-nopt">
1602+
<!-- disabled until problems are fixed -->
1603+
<!-- <param name="scalac.args.optimise" value="-optimise"/> -->
1604+
</antcall>
15941605
</target>
15951606

15961607
<target name="nightly-nopt" depends="all.done">

0 commit comments

Comments
 (0)