diff options
author | Nicolas Stucki <nicolas.stucki@gmail.com> | 2017-01-05 11:08:26 +0100 |
---|---|---|
committer | Nicolas Stucki <nicolas.stucki@gmail.com> | 2017-01-05 11:08:26 +0100 |
commit | 66a340937b0adead0aa7a96e21f68d43a03cba00 (patch) | |
tree | c29d139a36a2ecb5db669b613100b63a6dfb5a5f /bench | |
parent | 3922cce7afc295f7816397ebf2d2f59446a89041 (diff) | |
download | dotty-66a340937b0adead0aa7a96e21f68d43a03cba00.tar.gz dotty-66a340937b0adead0aa7a96e21f68d43a03cba00.tar.bz2 dotty-66a340937b0adead0aa7a96e21f68d43a03cba00.zip |
Add stdlib whitelist loader.
Diffstat (limited to 'bench')
-rw-r--r-- | bench/test/dotty/tools/benchmarks/Benchmarks.scala | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/bench/test/dotty/tools/benchmarks/Benchmarks.scala b/bench/test/dotty/tools/benchmarks/Benchmarks.scala index fe5517ad9..242d60788 100644 --- a/bench/test/dotty/tools/benchmarks/Benchmarks.scala +++ b/bench/test/dotty/tools/benchmarks/Benchmarks.scala @@ -1,5 +1,6 @@ package dotty.tools.benchmarks +import dotty.tools.StdLibSources import org.scalameter.Key.reports._ import org.scalameter.PerformanceTest.OnlineRegressionReport import org.scalameter.api._ @@ -47,13 +48,7 @@ object BenchTests extends OnlineRegressionReport { val dottyDir = "../compiler/src/dotty/" - val stdlibFiles = Source.fromFile("../compiler/test/dotc/scala-collections.whitelist", "UTF8").getLines() - .map(_.trim) // allow identation - .filter(!_.startsWith("#")) // allow comment lines prefixed by # - .map(_.takeWhile(_ != '#').trim) // allow comments in the end of line - .filter(_.nonEmpty) - .map("." + _) - .toList + val stdlibFiles = StdLibSources.whitelisted def stdLib = compiler.compileList("compileStdLib", stdlibFiles, "-migration" :: scala2mode) |