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
|
||||
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue