diff options
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/extccomp.nim | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler/extccomp.nim b/compiler/extccomp.nim index 34628e363..f4ef93070 100644 --- a/compiler/extccomp.nim +++ b/compiler/extccomp.nim @@ -668,8 +668,10 @@ proc getLinkCmd(conf: ConfigRef; projectfile, objfiles: string): string = if needsExeExt(conf): linkerExe = addFileExt(linkerExe, "exe") if noAbsolutePaths(conf): result = linkerExe else: result = joinPath(conf.cCompilerpath, linkerExe) - let buildgui = if optGenGuiApp in conf.globalOptions: CC[conf.cCompiler].buildGui - else: "" + let buildgui = if optGenGuiApp in conf.globalOptions and conf.target.targetOS == osWindows: + CC[conf.cCompiler].buildGui + else: + "" var exefile, builddll: string if optGenDynLib in conf.globalOptions: exefile = platform.OS[conf.target.targetOS].dllFrmt % splitFile(projectfile).name |