Merge pull request #252 from Jeff-Ciesielski/jeffc/issue_215
Add binDir checking/auto creation. Fixes #215
This commit is contained in:
commit
acb5e86fef
1 changed files with 5 additions and 0 deletions
|
|
@ -313,6 +313,11 @@ proc buildFromDir(pkgInfo: PackageInfo, paths: seq[string], forRelease: bool) =
|
||||||
let outputOpt = "-o:\"" & pkgInfo.getOutputDir(bin) & "\""
|
let outputOpt = "-o:\"" & pkgInfo.getOutputDir(bin) & "\""
|
||||||
echo("Building ", pkginfo.name, "/", bin, " using ", pkgInfo.backend,
|
echo("Building ", pkginfo.name, "/", bin, " using ", pkgInfo.backend,
|
||||||
" backend...")
|
" backend...")
|
||||||
|
|
||||||
|
let outputDir = pkgInfo.getOutputDir("")
|
||||||
|
if not existsDir(outputDir):
|
||||||
|
createDir(outputDir)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
doCmd(getNimBin() & " $# $# --noBabelPath $# $# \"$#\"" %
|
doCmd(getNimBin() & " $# $# --noBabelPath $# $# \"$#\"" %
|
||||||
[pkgInfo.backend, releaseOpt, args, outputOpt,
|
[pkgInfo.backend, releaseOpt, args, outputOpt,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue