Merge pull request #3873 from yglukhov/path-handling

Fixes #3871
This commit is contained in:
Andreas Rumpf
2016-02-16 19:42:05 +01:00
3 changed files with 13 additions and 1 deletions

View File

@@ -327,7 +327,7 @@ proc processSwitch(switch, arg: string, pass: TCmdLinePass, info: TLineInfo) =
lists.excludePath(options.lazyPaths, strippedPath)
of "nimcache":
expectArg(switch, arg, pass, info)
options.nimcacheDir = processPath(arg)
options.nimcacheDir = processPath(arg, true)
of "out", "o":
expectArg(switch, arg, pass, info)
options.outFile = arg

View File

@@ -731,6 +731,8 @@ proc callCCompiler*(projectfile: string) =
builddll = ""
if options.outFile.len > 0:
exefile = options.outFile.expandTilde
if not exefile.isAbsolute():
exefile = getCurrentDir() / exefile
if not noAbsolutePaths():
if not exefile.isAbsolute():
exefile = joinPath(splitFile(projectfile).dir, exefile)

View File

@@ -2,6 +2,16 @@
News
====
2016-XX-XX Version 0.13.1 released
==================================
Changes affecting backwards compatibility
-----------------------------------------
- ``--out`` and ``--nimcache`` command line arguments are now relative to
current directory. Previously they were relative to project directory.
2016-01-27 Nim in Action is now available!
==========================================