From 66a340937b0adead0aa7a96e21f68d43a03cba00 Mon Sep 17 00:00:00 2001 From: Nicolas Stucki Date: Thu, 5 Jan 2017 11:08:26 +0100 Subject: Add stdlib whitelist loader. --- bench/test/dotty/tools/benchmarks/Benchmarks.scala | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'bench/test/dotty/tools/benchmarks/Benchmarks.scala') 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) -- cgit v1.2.3