Skip to content

Commit 49d9f72

Browse files
committed
add --processing:dots|filenames|off to customize hintProcessing
1 parent 53c898d commit 49d9f72

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

compiler/passaux.nim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ type
2020

2121
proc verboseOpen(graph: ModuleGraph; s: PSym; idgen: IdGenerator): PPassContext =
2222
#MessageOut('compiling ' + s.name.s);
23+
let flag = if optListFullPaths in graph.config.globalOptions: foAbs else: foShort
24+
let fname = graph.config.toFilenameOption(s.position.FileIndex, flag)
2325
result = VerboseRef(config: graph.config, idgen: idgen)
24-
rawMessage(graph.config, hintProcessing, s.name.s)
26+
rawMessage(graph.config, hintProcessing, fname)
2527

2628
proc verboseProcess(context: PPassContext, n: PNode): PNode =
2729
result = n

0 commit comments

Comments
 (0)