Runs user specified outFile if available. Refs #738.
This commit is contained in:
parent
7ee0763bc5
commit
3b38ceac2e
1 changed files with 8 additions and 2 deletions
|
|
@ -65,8 +65,14 @@ proc HandleCmdLine() =
|
||||||
completeCFilePath(changeFileExt(gProjectFull, "js").prependCurDir))
|
completeCFilePath(changeFileExt(gProjectFull, "js").prependCurDir))
|
||||||
execExternalProgram("node " & ex & ' ' & service.arguments)
|
execExternalProgram("node " & ex & ' ' & service.arguments)
|
||||||
else:
|
else:
|
||||||
var ex = quoteShell(
|
var binPath: string
|
||||||
changeFileExt(gProjectFull, exeExt).prependCurDir)
|
if options.outFile.len > 0:
|
||||||
|
# If the user specified an outFile path, use that directly.
|
||||||
|
binPath = options.outFile.prependCurDir
|
||||||
|
else:
|
||||||
|
# Figure out ourselves a valid binary name.
|
||||||
|
binPath = changeFileExt(gProjectFull, exeExt).prependCurDir
|
||||||
|
var ex = quoteShell(binPath)
|
||||||
execExternalProgram(ex & ' ' & service.arguments)
|
execExternalProgram(ex & ' ' & service.arguments)
|
||||||
|
|
||||||
when defined(GC_setMaxPause):
|
when defined(GC_setMaxPause):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue