@@ -15,8 +15,9 @@ END-USER TARGETS
15
15
16
16
<target name =" build-opt"
17
17
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 >
20
21
</target >
21
22
22
23
<target name =" build.optimise" > <antcall target =" build" /></target > <!-- for compat, remove when unused -->
@@ -28,8 +29,9 @@ END-USER TARGETS
28
29
<target name =" test" depends =" test.done"
29
30
description =" Runs test suite and bootstrapping test on Scala compiler and library." />
30
31
<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 >
33
35
</target >
34
36
35
37
<target name =" docs" depends =" docs.done"
@@ -50,17 +52,19 @@ END-USER TARGETS
50
52
51
53
<target name =" dist-opt"
52
54
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 >
55
58
</target >
56
59
57
60
<target name =" dist.optimise" > <antcall target =" optdist" /></target > <!-- for compat, remove when unused -->
58
61
59
62
<target name =" fastdist" depends =" dist.done"
60
63
description =" Makes a new distribution without testing it or removing partially build elements" />
61
64
<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 >
64
68
</target >
65
69
66
70
<target name =" distclean" depends =" dist.clean"
@@ -82,8 +86,9 @@ END-USER TARGETS
82
86
83
87
<target name =" replacestarr-opt"
84
88
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 >
87
92
</target >
88
93
89
94
<target name =" newstarr.optimise" > <antcall target =" optnewstarr" /></target > <!-- for compat, remove when unused -->
@@ -109,14 +114,16 @@ END-USER TARGETS
109
114
<antcall target =" unlocklocker" />
110
115
</target >
111
116
<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 >
114
120
</target >
115
121
116
122
<target name =" replacelocker-opt"
117
123
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 >
120
127
</target >
121
128
122
129
<target name =" newlocker.optimise" > <antcall target =" replacelocker" /></target > <!-- for compat, remove when unused -->
@@ -195,6 +202,7 @@ INITIALISATION
195
202
============================================================================ -->
196
203
197
204
<target name =" init" >
205
+ <!-- The scalac.args.optimise is selectively overridden in certain antcall tasks. -->
198
206
<property name =" scalac.args.optimise" value =" " />
199
207
<property name =" scalac.args.all" value =" ${ scalac.args } ${ scalac.args.optimise } " />
200
208
<!-- Setting-up Ant contrib tasks -->
@@ -529,9 +537,10 @@ QUICK BUILD (QUICK)
529
537
</target >
530
538
531
539
<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 >
535
544
</target >
536
545
537
546
<target name =" quick.libs" depends =" quick.newlibs" unless =" libs.outdated" >
@@ -1589,8 +1598,10 @@ FORWARDED TARGETS FOR NIGHTLY BUILDS
1589
1598
============================================================================ -->
1590
1599
1591
1600
<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 >
1594
1605
</target >
1595
1606
1596
1607
<target name =" nightly-nopt" depends =" all.done" >
0 commit comments