diff options
author | Zahary Karadjov <zahary@gmail.com> | 2013-05-05 16:50:01 +0300 |
---|---|---|
committer | Zahary Karadjov <zahary@gmail.com> | 2013-05-05 16:50:01 +0300 |
commit | 11ee2261929117972256fc2117101ead3dfff11d (patch) | |
tree | 43c0ca917bc4a11a74afd6214c7651a24451a8d5 /compiler | |
parent | 961d3de8e5ae24778e0c2882656a3771b8332d38 (diff) | |
download | Nim-11ee2261929117972256fc2117101ead3dfff11d.tar.gz |
don't perform unnecessary linking
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/extccomp.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/extccomp.nim b/compiler/extccomp.nim index bb2f09151..a7e4eceb7 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 = "" |