depot/pkgs/by-name/ha/hare/003-hardcode-qbe-and-harec.patch
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

24 lines
816 B
Diff

diff --git a/cmd/hare/build.ha b/cmd/hare/build.ha
index ce19af9e..8631b325 100644
--- a/cmd/hare/build.ha
+++ b/cmd/hare/build.ha
@@ -36,7 +36,7 @@ fn build(name: str, cmd: *getopt::command) (void | error) = {
case let ncpu: size =>
yield ncpu;
},
- version = build::get_version(os::tryenv("HAREC", "harec"))?,
+ version = build::get_version(os::tryenv("HAREC", "@harec_bin@"))?,
arch = arch,
platform = build::get_platform(os::sysname())?,
...
@@ -143,8 +143,8 @@ fn build(name: str, cmd: *getopt::command) (void | error) = {
set_arch_tags(&ctx.ctx.tags, arch);
ctx.cmds = ["",
- os::tryenv("HAREC", "harec"),
- os::tryenv("QBE", "qbe"),
+ os::tryenv("HAREC", "@harec_bin@"),
+ os::tryenv("QBE", "@qbe_bin@"),
os::tryenv("AS", arch.as_cmd),
os::tryenv("LD", arch.ld_cmd),
];