Skip to content

Commit 80ee3e1

Browse files
committed
Avoid passing -print-tasty to the TastyPrinter
1 parent daab244 commit 80ee3e1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

compiler/src/dotty/tools/dotc/core/tasty/TastyPrinter.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ object TastyPrinter:
3535
println(showContents(bytes, noColor))
3636
println()
3737
printLastLine = true
38-
for arg <- args if arg != "-print-tasty" do
39-
if arg == "-print-tasty" || arg == "-color:never" then () // skip
38+
for arg <- args do
39+
if arg == "-color:never" then () // skip
4040
else if arg.startsWith("-") then println(s"bad option '$arg' was ignored")
4141
else if arg.endsWith(".tasty") then {
4242
val path = Paths.get(arg)

project/Build.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ object Build {
640640
val printTasty = args0.contains("-print-tasty")
641641
val debugFromTasty = args0.contains("-Ythrough-tasty")
642642
val args = args0.filter(arg => arg != "-repl" && arg != "-decompile" &&
643-
arg != "-with-compiler" && arg != "-Ythrough-tasty")
643+
arg != "-with-compiler" && arg != "-Ythrough-tasty" && arg != "-print-tasty")
644644

645645
val main =
646646
if (decompile) "dotty.tools.dotc.decompiler.Main"

0 commit comments

Comments
 (0)