diff options
author | liu fengyun <liufengyunchina@gmail.com> | 2016-05-30 10:03:57 +0200 |
---|---|---|
committer | liu fengyun <liufengyunchina@gmail.com> | 2016-05-30 10:03:57 +0200 |
commit | b5ac5de630227695bd2824fe12a5fa7a66387b6b (patch) | |
tree | 87c33128d68f6762fc981a726752e6ff4d8a48ce /project | |
parent | 9096d0833c3e8cc713a4d035e611b5c593db2f6d (diff) | |
download | dotty-b5ac5de630227695bd2824fe12a5fa7a66387b6b.tar.gz dotty-b5ac5de630227695bd2824fe12a5fa7a66387b6b.tar.bz2 dotty-b5ac5de630227695bd2824fe12a5fa7a66387b6b.zip |
fix benchmarks exception
The benchmark project generates a dubious exception when compiling
scala stdlib:
java.lang.ClassCastException: scala.tools.nsc.backend.jvm.BTypes$ClassBType
cannot be cast to scala.tools.nsc.backend.jvm.BTypes$ArrayBType
Upon investigation, this turns out to be a backend incompatibility
problem. The bench project runs with a previous version of scala-compiler.
Explicitly designating the scala-compiler version for bench fixes
the problem.
Diffstat (limited to 'project')
-rw-r--r-- | project/Build.scala | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/project/Build.scala b/project/Build.scala index 12ba46969..a8080100e 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -13,6 +13,8 @@ object DottyBuild extends Build { val JENKINS_BUILD = "dotty.jenkins.build" + val scalaCompiler = "me.d-d" % "scala-compiler" % "2.11.5-20160322-171045-e19b30b3cd" + val agentOptions = List( // "-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005" // "-agentpath:/home/dark/opt/yjp-2013-build-13072/bin/linux-x86-64/libyjpagent.so" @@ -81,7 +83,7 @@ object DottyBuild extends Build { com.typesafe.sbteclipse.plugin.EclipsePlugin.EclipseKeys.withSource := true, // get libraries onboard - partestDeps := Seq("me.d-d" % "scala-compiler" % "2.11.5-20160322-171045-e19b30b3cd", + partestDeps := Seq(scalaCompiler, "org.scala-lang" % "scala-reflect" % scalaVersion.value, "org.scala-lang" % "scala-library" % scalaVersion.value % "test"), libraryDependencies ++= partestDeps.value, @@ -242,8 +244,10 @@ object DottyBuild extends Build { baseDirectory in (Test,run) := (baseDirectory in dotty).value, - libraryDependencies ++= Seq("com.storm-enroute" %% "scalameter" % "0.6" % Test, - "com.novocode" % "junit-interface" % "0.11"), + libraryDependencies ++= Seq( + scalaCompiler % Test, + "com.storm-enroute" %% "scalameter" % "0.6" % Test + ), fork in Test := true, parallelExecution in Test := false, |