Allows passing absolute paths for output. Refs #738.

Previous to this the project base dir was added always, preventing user
specified absolute paths to work.
This commit is contained in:
Grzegorz Adam Hankiewicz 2013-12-20 13:33:43 +01:00
commit c0e2cb2919

View file

@ -616,7 +616,8 @@ proc CallCCompiler*(projectfile: string) =
if options.outFile.len > 0: if options.outFile.len > 0:
exefile = options.outFile exefile = options.outFile
if not noAbsolutePaths(): if not noAbsolutePaths():
exefile = joinPath(splitFile(projectFile).dir, exefile) if not exeFile.isAbsolute():
exefile = joinPath(splitFile(projectFile).dir, exefile)
exefile = quoteShell(exefile) exefile = quoteShell(exefile)
let linkOptions = getLinkOptions() let linkOptions = getLinkOptions()
linkCmd = quoteShell(linkCmd % ["builddll", builddll, linkCmd = quoteShell(linkCmd % ["builddll", builddll,