From 11ee2261929117972256fc2117101ead3dfff11d Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Sun, 5 May 2013 16:50:01 +0300 Subject: [PATCH] don't perform unnecessary linking --- compiler/extccomp.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/extccomp.nim b/compiler/extccomp.nim index bb2f091516..a7e4eceb7f 100644 --- a/compiler/extccomp.nim +++ b/compiler/extccomp.nim @@ -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 = ""