On 11/25/23 5:22 PM, Ember Sawady wrote:
> $AS/$LD/$CC should override the build configuration, even with -a specified
Thanks Ember! In looking through cmd/hare/build.ha again, I take it the
following code is executed on every run of 'hare build'?
ctx.arch = arch.qbe_name;
ctx.cmds = ["",
os::tryenv("HAREC", "harec"),
os::tryenv("QBE", "qbe"),
os::tryenv("AS", arch.as_cmd),
os::tryenv("LD", arch.ld_cmd),
];
set_arch_tags(&ctx.ctx.tags, arch);
if (len(ctx.libs) > 0) {
merge_tags(&ctx.ctx.tags, "+libc")?;
ctx.cmds[build::stage::BIN] = os::tryenv("CC", arch.cc_cmd);
};
Therefore, the HAREC, QBE, AS, LD and CC environment variables can
always act as a tool override for developers?
Cheers
On Sat Nov 25, 2023 at 10:35 PM UTC, Mike Rochefort wrote:
> Therefore, the HAREC, QBE, AS, LD and CC environment variables can
> always act as a tool override for developers?
yep :)