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
parent 3b38ceac2e
commit c0e2cb2919

View File

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