|
1 | | -import options, pathutils, platform, condsyms, extccomp |
| 1 | +import options, pathutils, platform, condsyms, extccomp, nimblecmd |
| 2 | +import lineinfos as nim2lineinfos |
2 | 3 | import std/[assertions, os, sets, strtabs, times] |
3 | 4 | from std/strutils import parseEnum |
4 | 5 | import "../dist/nimony/src/lib" / [bitabs, lineinfos, nifreader, nifstreams, nifcursors] |
@@ -358,7 +359,11 @@ proc loadConfigsFromNif(conf: ConfigRef; n: var Cursor) = |
358 | 359 | conf.symbols.defineSymbol(def) |
359 | 360 | inc n |
360 | 361 |
|
361 | | - fromNif conf.nimblePaths, "nimblepaths", n |
| 362 | + block: |
| 363 | + var tmpNimblePaths: seq[AbsoluteDir] = @[] |
| 364 | + fromNif tmpNimblePaths, "nimblepaths", n |
| 365 | + for i in countdown(tmpNimblePaths.len - 1, 0): |
| 366 | + nimblePath(conf, tmpNimblePaths[i], unknownLineInfo) |
362 | 367 | fromNif conf.searchPaths, "searchPaths", n |
363 | 368 |
|
364 | 369 | conf.outFile = pool.strings[n.litId].RelativeFile |
|
0 commit comments