Output build to the base directory by default.

Make nimble build output to the directory where the .nimble file resides
by default.
This commit is contained in:
Eugen Minciu 2014-12-28 21:46:57 +02:00
commit 70f03b2c9b

View file

@ -327,7 +327,7 @@ proc getOutputOption*(pkgInfo: TPackageInfo, bin: string): string =
if pkgInfo.buildDir != "":
result = " -o:\"" & pkgInfo.mypath.splitFile.dir / pkgInfo.buildDir / bin & "\""
else:
result = ""
result = " -o:\"" & pkgInfo.mypath.splitFile.dir / bin & "\""
proc getNameVersion*(pkgpath: string): tuple[name, version: string] =
## Splits ``pkgpath`` in the format ``/home/user/.nimble/pkgs/package-0.1``