commit b0103522577e4925a529ccdbc8e199df92866d78
parent ca29c4b2bd36d3b2cf91138e833d90ebd70c16d9
Author: Drew DeVault <sir@cmpwn.com>
Date: Sat, 6 Mar 2021 16:40:27 -0500
Use HAREC from environment if applicable
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/plan.ha b/plan.ha
@@ -1,5 +1,6 @@
use fmt;
use hare::module;
+use os;
use os::exec;
type status = enum {
@@ -32,8 +33,7 @@ fn sched_hare_exe(
inputs = inputs,
output = output,
depend = depend,
- // TODO: Get harec from environment
- cmd = alloc(["harec", "-o", output as str]),
+ cmd = alloc([os::tryenv("HAREC", "harec"), "-o", output as str]),
});
for (let i = 0z; i < len(inputs); i += 1) {
let path = inputs[i].path as str;