summaryrefslogtreecommitdiff
path: root/build.xml
diff options
context:
space:
mode:
authorLukas Rytz <lukas.rytz@gmail.com>2015-07-02 17:04:21 +0200
committerLukas Rytz <lukas.rytz@gmail.com>2015-07-03 15:23:02 +0200
commita179845fd5fae45cfab714db667fc140985e3a89 (patch)
treefa08557deb5c185affcf2e0bfe83e6264546bca4 /build.xml
parent80295ffc260d08592937ce6b27a333b9aedcac4c (diff)
downloadscala-a179845fd5fae45cfab714db667fc140985e3a89.tar.gz
scala-a179845fd5fae45cfab714db667fc140985e3a89.tar.bz2
scala-a179845fd5fae45cfab714db667fc140985e3a89.zip
Enable the new optimizer when building scala
No change in build.sbt, there's no optimizer settings there yet. Ignore the inliner warning in presentation/t7678 and run/t8029.scala, noted in https://issues.scala-lang.org/browse/SI-9378
Diffstat (limited to 'build.xml')
-rwxr-xr-xbuild.xml8
1 files changed, 4 insertions, 4 deletions
diff --git a/build.xml b/build.xml
index 145a64043a..38b1a7aeb4 100755
--- a/build.xml
+++ b/build.xml
@@ -19,7 +19,7 @@ ant $antArgs $scalacArgs $targets
antArgs tend to be:
-Darchives.skipxz=true
- -Dscalac.args.optimise=-optimise
+ -Dscalac.args.optimise=-Yopt:l:classpath
scalacArgs examples:
"-Dscalac.args=\"-Yrangepos\" -Dpartest.scalac_opts=\"-Yrangepos\""
@@ -79,13 +79,13 @@ TODO:
<target name="publish-opt-nodocs" description="Publishes Scala (optimized) without generating docs/testing (library/reflect/compiler/swing).">
<antcall target="publish">
<param name="docs.skip" value="1"/>
- <param name="scalac.args.optimise" value="-optimise"/>
+ <param name="scalac.args.optimise" value="-Yopt:l:classpath"/>
</antcall>
</target>
<target name="publish-core-opt-nodocs" description="Builds an untested, undocumented optimised core (library/reflect/compiler) and publishes to maven.">
<antcall target="publish-core">
<param name="docs.skip" value="1"/>
- <param name="scalac.args.optimise" value="-optimise"/>
+ <param name="scalac.args.optimise" value="-Yopt:l:classpath"/>
</antcall>
</target>
<target name="publish-core-local-nodocs" description="Builds an untested, undocumented core (library/reflect/compiler) and locally publishes to maven">
@@ -1042,7 +1042,7 @@ TODO:
<antcall target="publish-core-local">
<param name="maven.version.suffix" value="-STARR-${git.commit.sha}-SNAPSHOT"/>
<param name="docs.skip" value="1"/>
- <param name="scalac.args.optimise" value="-optimise"/>
+ <param name="scalac.args.optimise" value="-Yopt:l:classpath"/>
<param name="update.starr.version" value="alright then"/>
</antcall>
</target>