bugfix: -o option doesn't crash the compiler anymore
This commit is contained in:
parent
6c8e740b57
commit
9b4be8a739
1 changed files with 3 additions and 3 deletions
|
|
@ -603,14 +603,14 @@ proc CallCCompiler*(projectfile: string) =
|
||||||
if optGenGuiApp in gGlobalOptions: buildGui = cc[c].buildGui
|
if optGenGuiApp in gGlobalOptions: buildGui = cc[c].buildGui
|
||||||
else: buildGui = ""
|
else: buildGui = ""
|
||||||
var exefile: string
|
var exefile: string
|
||||||
if options.outFile.len > 0:
|
if optGenDynLib in gGlobalOptions:
|
||||||
exefile = options.outFile
|
|
||||||
elif optGenDynLib in gGlobalOptions:
|
|
||||||
exefile = platform.os[targetOS].dllFrmt % splitFile(projectFile).name
|
exefile = platform.os[targetOS].dllFrmt % splitFile(projectFile).name
|
||||||
buildDll = cc[c].buildDll
|
buildDll = cc[c].buildDll
|
||||||
else:
|
else:
|
||||||
exefile = splitFile(projectFile).name & platform.os[targetOS].exeExt
|
exefile = splitFile(projectFile).name & platform.os[targetOS].exeExt
|
||||||
buildDll = ""
|
buildDll = ""
|
||||||
|
if options.outFile.len > 0:
|
||||||
|
exefile = options.outFile
|
||||||
if not noAbsolutePaths():
|
if not noAbsolutePaths():
|
||||||
exefile = joinPath(splitFile(projectFile).dir, exefile)
|
exefile = joinPath(splitFile(projectFile).dir, exefile)
|
||||||
exefile = quoteIfContainsWhite(exefile)
|
exefile = quoteIfContainsWhite(exefile)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue