From 265f565be383fc8337de543ee5af10bde26e620a Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Mon, 20 Apr 2020 04:39:37 -0700 Subject: [PATCH] backport: prefixdir (#13117) and nimExe (#13876) (#14022) --- compiler/main.nim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compiler/main.nim b/compiler/main.nim index 877b82dd93..93bfe9f5c1 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, @@ -303,6 +303,8 @@ proc mainCommand*(graph: ModuleGraph) = var dumpdata = %[ (key: "version", val: %VersionAsString), + (key: "nimExe", val: %(getAppFilename())), + (key: "prefixdir", val: %conf.getPrefixDir().string), (key: "project_path", val: %conf.projectFull.string), (key: "defined_symbols", val: definedSymbols), (key: "lib_paths", val: %libpaths),