commit f205a7318b72cbb69f1506c813452e0d754217ff
parent 59018df6414bb3bc7c2a0b2220ba8fab58c656c3
Author: Sebastian <sebastian@sebsite.pw>
Date: Sat, 28 Oct 2023 02:35:08 -0400
driver: remove #875 workaround
Signed-off-by: Sebastian <sebastian@sebsite.pw>
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/cmd/hare/build/util.ha b/cmd/hare/build/util.ha
@@ -234,8 +234,7 @@ fn get_args(ctx: *context, tmp: str, flags: []str, t: *task) []str = {
yield ctx.mods[t.idx].srcs.ha;
case stage::S =>
append(args, get_cache(ctx, t.idx, stage::SSA)!);
- // TODO: https://todo.sr.ht/~sircmpwn/hare/875
- yield []: []str;
+ yield [];
case stage::O =>
append(args, get_cache(ctx, t.idx, stage::S)!);
yield ctx.mods[t.idx].srcs.s;
@@ -258,7 +257,7 @@ fn get_args(ctx: *context, tmp: str, flags: []str, t: *task) []str = {
append(args, strings::dup("-l"));
append(args, strings::dup(ctx.libs[i]));
};
- yield []: []str;
+ yield [];
};
for (let i = 0z; i < len(srcs); i += 1) {
append(args, strings::dup(srcs[i]));