mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-02 11:12:37 +00:00
fixes 'nim c file_without_nim_ext' regression; refs #5183
This commit is contained in:
@@ -54,7 +54,8 @@ proc handleCmdLine(cache: IdentCache) =
|
||||
except OSError:
|
||||
gProjectFull = gProjectName
|
||||
let p = splitFile(gProjectFull)
|
||||
gProjectPath = canonicalizePath p.dir
|
||||
let dir = if p.dir.len > 0: p.dir else: getCurrentDir()
|
||||
gProjectPath = canonicalizePath dir
|
||||
gProjectName = p.name
|
||||
else:
|
||||
gProjectPath = canonicalizePath getCurrentDir()
|
||||
|
||||
Reference in New Issue
Block a user