From d270245a0171c4532c9121e7e27dfd422f123840 Mon Sep 17 00:00:00 2001 From: Araq Date: Mon, 30 Jul 2018 12:04:00 +0200 Subject: [PATCH] disable --app:gui for non Windows targets; fixes #2576 --- compiler/extccomp.nim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/compiler/extccomp.nim b/compiler/extccomp.nim index 34628e363a..f4ef930707 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