Fixed the format of the compiler command being executed.

This commit is contained in:
Dominik Picheta 2013-10-24 19:00:22 +01:00
commit 181c8401ef

View file

@ -213,12 +213,12 @@ proc buildFromDir(pkgInfo: TPackageInfo, paths: seq[string]) =
## Builds a package as specified by ``pkgInfo``.
let realDir = pkgInfo.getRealDir()
var args = ""
for path in paths: args.add("--path:" & path & " ")
for path in paths: args.add("--path:\"" & path & "\" ")
for bin in pkgInfo.bin:
echo("Building ", pkginfo.name, "/", bin, " using ", pkgInfo.backend,
" backend...")
doCmd("nimrod $# -d:release \"$#\"" %
[pkgInfo.backend, args & realDir / bin.changeFileExt("nim")])
doCmd("nimrod $# -d:release $# \"$#\"" %
[pkgInfo.backend, args, realDir / bin.changeFileExt("nim")])
proc installFromDir(dir: string, latest: bool): string =
## Returns where package has been installed to.