summary refs log tree commit diff stats
path: root/drnim
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2021-04-21 06:26:27 -0700
committerGitHub <noreply@github.com>2021-04-21 15:26:27 +0200
commitda1c1a711780e21a372ef70f9080aebe5b9ef987 (patch)
treee068b6248c791ba0899bad85efac113d8c5f8076 /drnim
parentc631648cb31b11d61d249e0745181acb0fcc30cc (diff)
downloadNim-da1c1a711780e21a372ef70f9080aebe5b9ef987.tar.gz
`--filenames:abs|canonical|legacyRelProj` for filenames in compiler msgs (replaces `--listfullpaths:on|off`) (#17746)
* use canonicalImport for filename_magicSauce
* --filenames:abs|canonical|magic
* rename: magic => legacyRelProj
Diffstat (limited to 'drnim')
-rw-r--r--drnim/drnim.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/drnim/drnim.nim b/drnim/drnim.nim
index d549e1d5b..a591a8ef3 100644
--- a/drnim/drnim.nim
+++ b/drnim/drnim.nim
@@ -1205,6 +1205,7 @@ proc mainCommand(graph: ModuleGraph) =
   registerPass graph, semPass
   compileProject(graph)
   if conf.errorCounter == 0:
+    # xxx deduplicate with D20210419T170230
     let mem =
       when declared(system.getMaxMem): formatSize(getMaxMem()) & " peakmem"
       else: formatSize(getTotalMem()) & " totmem"
@@ -1213,7 +1214,7 @@ proc mainCommand(graph: ModuleGraph) =
                 elif isDefined(conf, "release"): "Release"
                 else: "Debug"
     let sec = formatFloat(epochTime() - conf.lastCmdTime, ffDecimal, 3)
-    let project = if optListFullPaths in conf.globalOptions: $conf.projectFull else: $conf.projectName
+    let project = if conf.filenameOption == foAbs: $conf.projectFull else: $conf.projectName
     rawMessage(conf, hintSuccessX, [
       "loc", loc,
       "sec", sec,