hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit ecbaae2bff7a92c4cd11d57a3980e709f20b9bbf
parent e7e5cb155700adfbdff233046c834bdfd04a8514
Author: Bor Grošelj Simić <bgs@turminal.net>
Date:   Sat, 12 Mar 2022 16:52:07 +0100

use value of HARE_DEBUG_WORKDIR as plan.workdir when set

Signed-off-by: Bor Grošelj Simić <bgs@turminal.net>

Diffstat:
Mcmd/hare/plan.ha | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmd/hare/plan.ha b/cmd/hare/plan.ha @@ -96,7 +96,7 @@ fn mkplan(ctx: *module::context, libs: []str) plan = { return plan { context = ctx, - workdir = temp::dir(), + workdir = os::tryenv("HARE_DEBUG_WORKDIR", temp::dir()), script = path::allocate(&buf), environ = alloc([ (strings::dup("HARECACHE"), strings::dup(ctx.cache)),