From 6c94291eee77141ba83720a6371f7862520784f9 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Wed, 30 Mar 2022 23:27:10 +0300 Subject: [PATCH] Fix the build under Nim 1.2 --- nimbus.nimble | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/nimbus.nimble b/nimbus.nimble index 91059ded0..9b97450db 100644 --- a/nimbus.nimble +++ b/nimbus.nimble @@ -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":