mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-17 00:24:16 +00:00
findExe() now by default follows symlinks.
This commit is contained in:
@@ -212,9 +212,7 @@ proc setDefaultLibpath*() =
|
||||
|
||||
# Special rule to support other tools (nimble) which import the compiler
|
||||
# modules and make use of them.
|
||||
let realNimPath = # Make sure we expand the symlink
|
||||
if symlinkExists(findExe("nim")): expandSymlink(findExe("nim"))
|
||||
else: findExe("nim")
|
||||
let realNimPath = findExe("nim")
|
||||
# Find out if $nim/../../lib/system.nim exists.
|
||||
let parentNimLibPath = realNimPath.parentDir().parentDir() / "lib"
|
||||
if not fileExists(libpath / "system.nim") and
|
||||
|
||||
Reference in New Issue
Block a user