From 29734b73ff7db82d623986ebb8bcb04289e5b270 Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Sun, 5 Apr 2020 07:44:34 -0700 Subject: [PATCH] add nimPath to nim dump (#13876) * add nimPath to nim dump * rename --- compiler/main.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/main.nim b/compiler/main.nim index 217858137ba0b..1a776d51606e6 100644 --- a/compiler/main.nim +++ b/compiler/main.nim @@ -13,7 +13,7 @@ when not defined(nimcore): {.error: "nimcore MUST be defined for Nim's core tooling".} import - llstream, strutils, ast, lexer, syntaxes, options, msgs, + llstream, strutils, os, ast, lexer, syntaxes, options, msgs, condsyms, times, sem, idents, passes, extccomp, cgen, json, nversion, @@ -315,6 +315,7 @@ proc mainCommand*(graph: ModuleGraph) = var dumpdata = %[ (key: "version", val: %VersionAsString), + (key: "nimExe", val: %(getAppFilename())), (key: "prefixdir", val: %conf.getPrefixDir().string), (key: "libpath", val: %conf.libpath.string), (key: "project_path", val: %conf.projectFull.string),