~sircmpwn/hare-users

2 2

Re: Native and cross-compiling toolchain configuration

Details
Message ID
<82d9d0de-ab96-4c2d-ae72-939873635151@omenos.dev>
DKIM signature
missing
Download raw message
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

Re: Native and cross-compiling toolchain configuration

Details
Message ID
<CX8976420J80.3NAZR28J6BC2J@d2evs.net>
In-Reply-To
<82d9d0de-ab96-4c2d-ae72-939873635151@omenos.dev> (view parent)
DKIM signature
missing
Download raw message
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 :)

Re: Native and cross-compiling toolchain configuration

Details
Message ID
<a9bccd6e-57db-4717-a957-ed28272f6cb2@omenos.dev>
In-Reply-To
<CX8976420J80.3NAZR28J6BC2J@d2evs.net> (view parent)
DKIM signature
missing
Download raw message
On 11/25/23 5:41 PM, Ember Sawady wrote:
> yep :)

Amazing, thanks!

Cheers
Reply to thread Export thread (mbox)