NimScript: prepare for future Nimble improvements; should be completely compatible with old and upcoming Nimble versions
This commit is contained in:
parent
0daca5c463
commit
77d5d0cdfe
1 changed files with 21 additions and 19 deletions
|
|
@ -293,6 +293,8 @@ template task*(name: untyped; description: string; body: untyped): untyped =
|
||||||
setCommand "nop"
|
setCommand "nop"
|
||||||
`name Task`()
|
`name Task`()
|
||||||
|
|
||||||
|
when not defined(nimble):
|
||||||
|
# nimble has its own implementation for these things.
|
||||||
var
|
var
|
||||||
packageName* = "" ## Nimble support: Set this to the package name. It
|
packageName* = "" ## Nimble support: Set this to the package name. It
|
||||||
## is usually not required to do that, nims' filename is
|
## is usually not required to do that, nims' filename is
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue