commit d0f79b741d712c151d2d0e1496b17b692656cb04
parent 83fcdf5152cece9450cabd060bc5d7e2bc686ec2
Author: Dominik Hagowski <dom@inik.dev>
Date: Sat, 19 Aug 2023 16:15:38 +0100
Fix duplicate task when building object files
When using `hare build -c` the same task will be appended to the plan
list twice, causing a crash when using the new malloc.
Signed-off-by: Dominik Hagowski <dom@inik.dev>
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/cmd/hare/subcmds.ha b/cmd/hare/subcmds.ha
@@ -175,9 +175,8 @@ fn build(cmd: *getopt::command) void = {
case goal::EXE =>
sched_hare_exe(&plan, ver, output, depends...);
case goal::OBJ =>
- let task = sched_hare_object(&plan, ver,
+ sched_hare_object(&plan, ver,
namespace, output, depends...);
- append(plan.scheduled, task);
};
match (plan_execute(&plan, verbose)) {
case void => void;