diff options
author | Araq <rumpf_a@web.de> | 2013-05-01 21:31:44 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2013-05-01 21:31:44 +0200 |
commit | c75aa98706eabc6df6a0900bce52a52ea23ab671 (patch) | |
tree | 2e09c1016532a6e50ca97d1f958ac8708cd1f064 /compiler | |
parent | 56045ad7ff06c8dc7e3b1c4ac9ae3cb083fae485 (diff) | |
download | Nim-c75aa98706eabc6df6a0900bce52a52ea23ab671.tar.gz |
--out works for exes
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/extccomp.nim | 4 |
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: |