From a0fa88c92f584dea622089fa209e60e9a8cfa8de Mon Sep 17 00:00:00 2001 From: Nicolas Stucki Date: Fri, 14 Dec 2018 20:05:57 +0100 Subject: [PATCH] Add missing -Yretain-trees in ConsumeTasty As we may want to see trees that come from dependencies --- compiler/src/dotty/tools/dotc/consumetasty/ConsumeTasty.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/src/dotty/tools/dotc/consumetasty/ConsumeTasty.scala b/compiler/src/dotty/tools/dotc/consumetasty/ConsumeTasty.scala index 2e54866459be..cd8946ea8cfe 100644 --- a/compiler/src/dotty/tools/dotc/consumetasty/ConsumeTasty.scala +++ b/compiler/src/dotty/tools/dotc/consumetasty/ConsumeTasty.scala @@ -18,7 +18,7 @@ object ConsumeTasty { val currentClasspath = QuoteDriver.currentClasspath import java.io.File.{ pathSeparator => sep } - val args = "-from-tasty" +: "-classpath" +: s"$classpath$sep$currentClasspath" +: classes + val args = "-from-tasty" :: "-Yretain-trees" :: "-classpath" :: s"$classpath$sep$currentClasspath" :: classes (new Consume).process(args.toArray) } }