diff options
author | Yuriy Glukhov <yutiy.glukhov@gmail.com> | 2016-02-16 14:12:51 +0200 |
---|---|---|
committer | Yuriy Glukhov <yutiy.glukhov@gmail.com> | 2016-02-16 14:12:51 +0200 |
commit | b293e2a9ec18fbcbf83719abcd9a7e0a757fa753 (patch) | |
tree | 33c96d364b83680be03bffc1dfbf8dc7ee2c7482 | |
parent | 06bd5a61a463a3d361ff77c3858681e664e14937 (diff) | |
download | Nim-b293e2a9ec18fbcbf83719abcd9a7e0a757fa753.tar.gz |
Fixes #3871
-rw-r--r-- | compiler/commands.nim | 2 | ||||
-rw-r--r-- | compiler/extccomp.nim | 2 | ||||
-rw-r--r-- | web/news.txt | 10 |
3 files changed, 13 insertions, 1 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim index 02c0b8486..8dacebd83 100644 --- a/compiler/commands.nim +++ b/compiler/commands.nim @@ -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 diff --git a/compiler/extccomp.nim b/compiler/extccomp.nim index 3882bdd03..16a8b8bd4 100644 --- a/compiler/extccomp.nim +++ b/compiler/extccomp.nim @@ -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) diff --git a/web/news.txt b/web/news.txt index bd8f893c2..d8c591d53 100644 --- a/web/news.txt +++ b/web/news.txt @@ -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! ========================================== |