hare

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

commit e35f2284774436f422e06f0e8d290b173ced1677
parent c8fa5a819a862b7e5b0a2bc5a986ca2b79ff0dcb
Author: Drew DeVault <sir@cmpwn.com>
Date:   Fri, 23 Feb 2024 12:24:49 +0100

cmd/hare: add toolchains to hare version -v

Signed-off-by: Drew DeVault <sir@cmpwn.com>

Diffstat:
Mcmd/hare/version.ha | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/cmd/hare/version.ha b/cmd/hare/version.ha @@ -39,4 +39,12 @@ fn version(name: str, cmd: *getopt::command) (void | error) = { case let s: str => fmt::printfln("\t{}", s)?; }; + + fmt::println("toolchains:")?; + for (let i = 0z; i < len(arches); i += 1) { + fmt::printfln(" {}:", arches[i].name)?; + fmt::printfln("\tAS={}", arches[i].as_cmd)?; + fmt::printfln("\tCC={}", arches[i].cc_cmd)?; + fmt::printfln("\tLD={}", arches[i].ld_cmd)?; + }; };