don't perform unnecessary linking

This commit is contained in:
Zahary Karadjov
2013-05-05 16:50:01 +03:00
parent 961d3de8e5
commit 11ee226192

View File

@@ -579,7 +579,7 @@ proc CallCCompiler*(projectfile: string) =
else:
rawMessage(errGenerated, " execution of an external program failed; " &
"rerun with --parallelBuild:1 to see the error message")
if optNoLinking notin gGlobalOptions:
if optNoLinking notin gGlobalOptions and cmds.len > 0:
# call the linker:
var it = PStrEntry(toLink.head)
var objfiles = ""