Is there a way to combine multiple tasks in nimscript? Say one needs to first call c2nim to compile headers and then compile a nim program that includes these headers. One could have two separate tasks for this.
Is there a way to make a task that will call each of these in turn?
We use this solution:
template dep*(task: untyped): stmt =
exec "nim " & astToStr(task)
task a, "a":
setCommand "c", "a"
task b, "b":
dep a
setCommand "c", "b"