Skip to content

Commit 9fcf594

Browse files
committed
Fix CG vis output filename.
1 parent 294afa0 commit 9fcf594

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/src/dotty/tools/dotc/transform/linker/BuildCallGraph.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ class BuildCallGraph extends Phase {
126126
callGraph.getInfo().log()
127127

128128
if (ctx.settings.linkVis.value) {
129-
val visFile = new java.io.File(ctx.settings.d.value + "-call-graph.html")
129+
val d = ctx.settings.d.value
130+
val visFile = new java.io.File(if (d == ".") "call-graph.html" else d + "-call-graph.html")
130131
GraphVisualization.outputGraphVisToFile(callGraph, visFile)
131132
ctx.log("Created call graph visualization: " + visFile.getAbsoluteFile)
132133
}

0 commit comments

Comments
 (0)