From 181c8401effc292b23875916a908fa858004dadb Mon Sep 17 00:00:00 2001 From: Dominik Picheta Date: Thu, 24 Oct 2013 19:00:22 +0100 Subject: [PATCH] Fixed the format of the compiler command being executed. --- babel.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/babel.nim b/babel.nim index 0558dd8..9defdcf 100644 --- a/babel.nim +++ b/babel.nim @@ -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.