diff options
author | zah <zahary@gmail.com> | 2013-12-20 04:53:42 -0800 |
---|---|---|
committer | zah <zahary@gmail.com> | 2013-12-20 04:53:42 -0800 |
commit | 348ccffecd54daec4569c8bb1c78bd15d9d8f4ff (patch) | |
tree | 87773a24f1949372ec5abc691daeed13152b62d2 /compiler/extccomp.nim | |
parent | 7ee0763bc5b88229074dcf9f7b780cb4873453aa (diff) | |
parent | c0e2cb29195c9d84781609689697a26892ea943c (diff) | |
download | Nim-348ccffecd54daec4569c8bb1c78bd15d9d8f4ff.tar.gz |
Merge pull request #767 from gradha/pr_fixes_run_with_out
Fixes run command with outFile
Diffstat (limited to 'compiler/extccomp.nim')
-rw-r--r-- | compiler/extccomp.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/extccomp.nim b/compiler/extccomp.nim index fe1bea3ff..d3b3cee75 100644 --- a/compiler/extccomp.nim +++ b/compiler/extccomp.nim @@ -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, |