diff options
-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 e6b23aae5..42c341651 100644 --- a/compiler/extccomp.nim +++ b/compiler/extccomp.nim @@ -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: |