Skip to content

Commit

Permalink
add debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
disruptek committed May 1, 2020
1 parent b505844 commit c6eeaee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/nimph/config.nim
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ var
proc findPrefixDir(): AbsoluteDir =
## determine the prefix directory for the current compiler
if compilerPrefixDir.isEmpty:
debug "find prefix"
let
compiler = runSomething("nim",
@["--hints:off",
Expand All @@ -127,6 +128,7 @@ proc findPrefixDir(): AbsoluteDir =
except KeyError:
warn "couldn't parse the prefix directory from `nim dump` output"
compilerPrefixDir = AbsoluteDir parentDir(findExe"nim")
debug "found prefix"
result = compilerPrefixDir

proc loadAllCfgs*(directory: string): ConfigRef =
Expand Down

0 comments on commit c6eeaee

Please sign in to comment.