Fix the build under Nim 1.2

This commit is contained in:
Zahary Karadjov 2022-03-30 23:27:10 +03:00
parent c8dff12591
commit 6c94291eee
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
1 changed files with 6 additions and 5 deletions

View File

@ -22,11 +22,12 @@ requires "nim >= 1.2.0",
binDir = "build"
namedBin = {
"nimbus/nimbus": "nimbus",
"fluffy/fluffy": "fluffy",
"fluffy/tools/portalcli": "portalcli",
}.toTable()
when declared(namedBin):
namedBin = {
"nimbus/nimbus": "nimbus",
"fluffy/fluffy": "fluffy",
"fluffy/tools/portalcli": "portalcli",
}.toTable()
proc buildBinary(name: string, srcDir = "./", params = "", lang = "c") =
if not dirExists "build":