Fixes #108.
This commit is contained in:
parent
96ddb12da8
commit
26d99d288e
3 changed files with 22 additions and 0 deletions
|
|
@ -527,6 +527,10 @@ proc processDeps(pkginfo: PackageInfo, options: Options): seq[string] =
|
|||
|
||||
proc buildFromDir(pkgInfo: PackageInfo, paths: seq[string], forRelease: bool) =
|
||||
## Builds a package as specified by ``pkgInfo``.
|
||||
if pkgInfo.bin.len == 0:
|
||||
raise newException(NimbleError,
|
||||
"Nothing to build. Did you specify a module to build using the" &
|
||||
" `bin` key in your .nimble file?")
|
||||
let realDir = pkgInfo.getRealDir()
|
||||
let releaseOpt = if forRelease: "-d:release" else: ""
|
||||
var args = ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue