From 9b4be8a739256da9c5f932a3eb974f496c044fb3 Mon Sep 17 00:00:00 2001 From: Araq Date: Mon, 1 Jul 2013 20:17:36 +0200 Subject: [PATCH] bugfix: -o option doesn't crash the compiler anymore --- compiler/extccomp.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/extccomp.nim b/compiler/extccomp.nim index 44396100bc..efb8e59088 100644 --- a/compiler/extccomp.nim +++ b/compiler/extccomp.nim @@ -603,14 +603,14 @@ proc CallCCompiler*(projectfile: string) = if optGenGuiApp in gGlobalOptions: buildGui = cc[c].buildGui else: buildGui = "" var exefile: string - if options.outFile.len > 0: - exefile = options.outFile - elif optGenDynLib in gGlobalOptions: + if optGenDynLib in gGlobalOptions: exefile = platform.os[targetOS].dllFrmt % splitFile(projectFile).name buildDll = cc[c].buildDll else: exefile = splitFile(projectFile).name & platform.os[targetOS].exeExt buildDll = "" + if options.outFile.len > 0: + exefile = options.outFile if not noAbsolutePaths(): exefile = joinPath(splitFile(projectFile).dir, exefile) exefile = quoteIfContainsWhite(exefile)