add nimPath to nim dump (#13876)

* add nimPath to nim dump

* rename
This commit is contained in:
Timothee Cour 2020-04-05 07:44:34 -07:00 • committed by GitHub
commit 29734b73ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,7 +13,7 @@ when not defined(nimcore):
{.error: "nimcore MUST be defined for Nim's core tooling".} {.error: "nimcore MUST be defined for Nim's core tooling".}
import import
llstream, strutils, ast, lexer, syntaxes, options, msgs, llstream, strutils, os, ast, lexer, syntaxes, options, msgs,
condsyms, times, condsyms, times,
sem, idents, passes, extccomp, sem, idents, passes, extccomp,
cgen, json, nversion, cgen, json, nversion,
@ -315,6 +315,7 @@ proc mainCommand*(graph: ModuleGraph) =
var dumpdata = %[ var dumpdata = %[
(key: "version", val: %VersionAsString), (key: "version", val: %VersionAsString),
(key: "nimExe", val: %(getAppFilename())),
(key: "prefixdir", val: %conf.getPrefixDir().string), (key: "prefixdir", val: %conf.getPrefixDir().string),
(key: "libpath", val: %conf.libpath.string), (key: "libpath", val: %conf.libpath.string),
(key: "project_path", val: %conf.projectFull.string), (key: "project_path", val: %conf.projectFull.string),