Closed nigredo-tori closed 7 years ago
import ospaths --app:lib --define:createNimRtl let nimDir = findExe("nim").parentDir.parentDir setcommand "c", nimDir / "lib" / "nimrtl.nim"
fails:
Error: cannot open 'c:\dev\tmp\c:\dev\nim\lib\nimrtl.nim'
The reason - code in compiler/scriptconfig.nim assumes canonicalizePath raises OSError on invalid paths. On Windows it does not.
compiler/scriptconfig.nim
canonicalizePath
OSError
Ok, so you found the reason. How about a PR?
fails:
The reason - code in
compiler/scriptconfig.nim
assumescanonicalizePath
raisesOSError
on invalid paths. On Windows it does not.