Emit relative object file paths in genScript (#6835)

This commit is contained in:
Yuriy Glukhov
2017-11-29 08:07:16 -08:00
committed by Andreas Rumpf
parent fcad56c804
commit 216119212c

View File

@@ -764,8 +764,9 @@ proc callCCompiler*(projectfile: string) =
add(objfiles, quoteShell(
addFileExt(objFile, CC[cCompiler].objExt)))
for x in toCompile:
let objFile = if noAbsolutePaths(): x.obj.extractFilename else: x.obj
add(objfiles, ' ')
add(objfiles, quoteShell(x.obj))
add(objfiles, quoteShell(objFile))
linkCmd = getLinkCmd(projectfile, objfiles)
if optCompileOnly notin gGlobalOptions: