Fixed the format of the compiler command being executed.
This commit is contained in:
parent
d513450d8b
commit
181c8401ef
1 changed files with 3 additions and 3 deletions
|
|
@ -213,12 +213,12 @@ proc buildFromDir(pkgInfo: TPackageInfo, paths: seq[string]) =
|
||||||
## Builds a package as specified by ``pkgInfo``.
|
## Builds a package as specified by ``pkgInfo``.
|
||||||
let realDir = pkgInfo.getRealDir()
|
let realDir = pkgInfo.getRealDir()
|
||||||
var args = ""
|
var args = ""
|
||||||
for path in paths: args.add("--path:" & path & " ")
|
for path in paths: args.add("--path:\"" & path & "\" ")
|
||||||
for bin in pkgInfo.bin:
|
for bin in pkgInfo.bin:
|
||||||
echo("Building ", pkginfo.name, "/", bin, " using ", pkgInfo.backend,
|
echo("Building ", pkginfo.name, "/", bin, " using ", pkgInfo.backend,
|
||||||
" backend...")
|
" backend...")
|
||||||
doCmd("nimrod $# -d:release \"$#\"" %
|
doCmd("nimrod $# -d:release $# \"$#\"" %
|
||||||
[pkgInfo.backend, args & realDir / bin.changeFileExt("nim")])
|
[pkgInfo.backend, args, realDir / bin.changeFileExt("nim")])
|
||||||
|
|
||||||
proc installFromDir(dir: string, latest: bool): string =
|
proc installFromDir(dir: string, latest: bool): string =
|
||||||
## Returns where package has been installed to.
|
## Returns where package has been installed to.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue