Skip to content

Commit 265f565

Browse files
authored
backport: prefixdir (#13117) and nimExe (#13876) (#14022)
1 parent 6673934 commit 265f565

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

compiler/main.nim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ when not defined(nimcore):
1313
{.error: "nimcore MUST be defined for Nim's core tooling".}
1414

1515
import
16-
llstream, strutils, ast, lexer, syntaxes, options, msgs,
16+
llstream, strutils, os, ast, lexer, syntaxes, options, msgs,
1717
condsyms, times,
1818
sem, idents, passes, extccomp,
1919
cgen, json, nversion,
@@ -303,6 +303,8 @@ proc mainCommand*(graph: ModuleGraph) =
303303

304304
var dumpdata = %[
305305
(key: "version", val: %VersionAsString),
306+
(key: "nimExe", val: %(getAppFilename())),
307+
(key: "prefixdir", val: %conf.getPrefixDir().string),
306308
(key: "project_path", val: %conf.projectFull.string),
307309
(key: "defined_symbols", val: definedSymbols),
308310
(key: "lib_paths", val: %libpaths),

0 commit comments

Comments
 (0)