summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2013-05-01 21:31:44 +0200
committerAraq <rumpf_a@web.de>2013-05-01 21:31:44 +0200
commitc75aa98706eabc6df6a0900bce52a52ea23ab671 (patch)
tree2e09c1016532a6e50ca97d1f958ac8708cd1f064 /compiler
parent56045ad7ff06c8dc7e3b1c4ac9ae3cb083fae485 (diff)
downloadNim-c75aa98706eabc6df6a0900bce52a52ea23ab671.tar.gz
--out works for exes
Diffstat (limited to 'compiler')
-rw-r--r--compiler/extccomp.nim4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/extccomp.nim b/compiler/extccomp.nim
index bb2f09151..8107fcd82 100644
--- a/compiler/extccomp.nim
+++ b/compiler/extccomp.nim
@@ -603,7 +603,9 @@ proc CallCCompiler*(projectfile: string) =
       if optGenGuiApp in gGlobalOptions: buildGui = cc[c].buildGui
       else: buildGui = ""
       var exefile: string
-      if optGenDynLib in gGlobalOptions:
+      if options.outFile.len > 0: 
+        exefile = options.outFile
+      elif optGenDynLib in gGlobalOptions:
         exefile = platform.os[targetOS].dllFrmt % splitFile(projectFile).name
         buildDll = cc[c].buildDll
       else: