From 5cd18b0f240ff111e8892aef7bbab5037c3888bf Mon Sep 17 00:00:00 2001 From: Araq Date: Sun, 13 Jan 2019 09:04:13 +0100 Subject: [PATCH] make system.task compatible with NimScript; refs #10254 --- lib/system/nimscript.nim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/system/nimscript.nim b/lib/system/nimscript.nim index 34daf30a9e..ae97e88fa2 100644 --- a/lib/system/nimscript.nim +++ b/lib/system/nimscript.nim @@ -341,14 +341,15 @@ when not defined(nimble): ## .. code-block:: nim ## task build, "default build is via the C backend": ## setCommand "c" - proc `name Task`*() = body + proc `name Task`*() = + setCommand "nop" + body let cmd = getCommand() if cmd.len == 0 or cmd ==? "help": setCommand "help" writeTask(astToStr(name), description) elif cmd ==? astToStr(name): - setCommand "nop" `name Task`() # nimble has its own implementation for these things.