disable --app:gui for non Windows targets; fixes #2576
This commit is contained in:
parent
e86a0ecd86
commit
d270245a01
1 changed files with 4 additions and 2 deletions
|
|
@ -668,8 +668,10 @@ proc getLinkCmd(conf: ConfigRef; projectfile, objfiles: string): string =
|
||||||
if needsExeExt(conf): linkerExe = addFileExt(linkerExe, "exe")
|
if needsExeExt(conf): linkerExe = addFileExt(linkerExe, "exe")
|
||||||
if noAbsolutePaths(conf): result = linkerExe
|
if noAbsolutePaths(conf): result = linkerExe
|
||||||
else: result = joinPath(conf.cCompilerpath, linkerExe)
|
else: result = joinPath(conf.cCompilerpath, linkerExe)
|
||||||
let buildgui = if optGenGuiApp in conf.globalOptions: CC[conf.cCompiler].buildGui
|
let buildgui = if optGenGuiApp in conf.globalOptions and conf.target.targetOS == osWindows:
|
||||||
else: ""
|
CC[conf.cCompiler].buildGui
|
||||||
|
else:
|
||||||
|
""
|
||||||
var exefile, builddll: string
|
var exefile, builddll: string
|
||||||
if optGenDynLib in conf.globalOptions:
|
if optGenDynLib in conf.globalOptions:
|
||||||
exefile = platform.OS[conf.target.targetOS].dllFrmt % splitFile(projectfile).name
|
exefile = platform.OS[conf.target.targetOS].dllFrmt % splitFile(projectfile).name
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue