diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2017-01-06 18:22:27 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-01-06 18:22:27 +0100 |
commit | 92b48dbcad8fc564a2146a5c4fa73aba3dbc99d1 (patch) | |
tree | 824ca5ea984e03246caf945f235b85c971d736bd | |
parent | 64912d3d70224463ae2f5b1cc829ee1dd2442dcc (diff) | |
download | Nim-92b48dbcad8fc564a2146a5c4fa73aba3dbc99d1.tar.gz |
fixes 'nim c file_without_nim_ext' regression; refs #5183
-rw-r--r-- | compiler/nim.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/nim.nim b/compiler/nim.nim index 35afecf20..c458f76f9 100644 --- a/compiler/nim.nim +++ b/compiler/nim.nim @@ -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() |