hare

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

commit d61cd911d96b0483a3ea208d731a42f129051774
parent 9fb6c1ef243adc148444e4fa3d138a9ace6d4391
Author: Ember Sawady <ecs@d2evs.net>
Date:   Thu, 15 Feb 2024 11:21:01 +0000

output to ./foo on `hare build foo.ha`

rather than ./$(basename $PWD)

Signed-off-by: Ember Sawady <ecs@d2evs.net>

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

diff --git a/cmd/hare/build.ha b/cmd/hare/build.ha @@ -213,7 +213,7 @@ fn get_output(goal: build::stage, input: str) (str | error) = { let stat = os::stat(input)?; path::set(&buf, os::realpath(input)?)?; if (!fs::isdir(stat.mode)) { - path::pop(&buf); + path::pop_ext(&buf); }; // don't add the .bin extension if the goal is to create a binary if (goal != build::stage::BIN) {