From bcbb85c5e438b2f62efd6fda0bb283b1feb6a60c Mon Sep 17 00:00:00 2001 From: Chris Rohlfs Date: Tue, 22 Nov 2016 01:41:40 +1300 Subject: [PATCH] Fix 'compile' not working when spaces are in bin path --- src/nimble.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nimble.nim b/src/nimble.nim index 38d9d11..2a9dfc9 100644 --- a/src/nimble.nim +++ b/src/nimble.nim @@ -628,7 +628,7 @@ proc compile(options: Options) = echo("Compiling ", bin, " (", pkgInfo.name, ") using ", backend, " backend...") - doCmd(getNimBin() & " $# --noBabelPath $# \"$#\"" % + doCmd("\"" & getNimBin() & "\" $# --noBabelPath $# \"$#\"" % [backend, args, bin]) proc search(options: Options) =