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:
parent
3b38ceac2e
commit
c0e2cb2919
1 changed files with 2 additions and 1 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue