Last active
December 12, 2015 04:08
-
-
Save Rogach/4712241 to your computer and use it in GitHub Desktop.
Scala 2.10 with bigger tuples (the tuples in created dist are going up to 55 elements).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone git://github.com/scala/scala.git scala-tuplicity | |
cd scala-tuplicity | |
git checkout v2.10.0 | |
export ANT_OPTS="-Xmx8192m -Xss25M -Xms4096M -XX:MaxPermSize=512M" | |
VERS="-Dbuild.release=true -Dversion.number=2.10.0-tuplicity -Dmaven.version.number=2.10.0-tuplicity" | |
ant build | |
sed -i 's/\(val MaxTupleArity, .*\) 22/\1 55/' src/reflect/scala/reflect/internal/Definitions.scala | |
ant build | |
sed -i 's/22/55/' src/library/scala/runtime/ScalaRunTime.scala | |
ant build | |
ant replacelocker | |
sed -i 's/\(MAX_ARITY .*\) 22/\1 55/' src/build/genprod.scala | |
sed -i 's/import scala.language.postfixOps//' src/build/genprod.scala | |
echo 'genprod.main(Array("src/library/scala/"))' >> src/build/genprod.scala | |
scala src/build/genprod.scala | |
ant build $VERS | |
cd lib | |
cp ../build/pack/lib/* ./ | |
for x in *.jar; do sha1sum $x | sed 's/\(\w*\) \(.*\)/\1 ?\2/' > ${x}.desired.sha1; done | |
cd .. | |
ant fastdist-opt $VERS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment