From b293e2a9ec18fbcbf83719abcd9a7e0a757fa753 Mon Sep 17 00:00:00 2001 From: Yuriy Glukhov Date: Tue, 16 Feb 2016 14:12:51 +0200 Subject: Fixes #3871 --- compiler/commands.nim | 2 +- compiler/extccomp.nim | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'compiler') 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) -- cgit 1.4.1-2-gfad0