hare

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

commit 6f19469a99b5345934a0bb1d3a983658c7c33502
parent 83bbdaa6c1159612a8a2e340dd1898eab0ddabc1
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sat,  6 Mar 2021 12:18:15 -0500

Add +$(ARCH) build tag to context

Not that the context makes use of these yet

Diffstat:
Mmain.ha | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/main.ha b/main.ha @@ -13,8 +13,10 @@ export fn main() void = { }; fmt::printfln("Building for {}", os::machine()); - - let ctx = module::context_init([]); + let ctx = module::context_init([module::tag{ + name = os::machine(), + mode = module::tag_mode::INCLUSIVE, + }]); let ver = match (module::scan(&ctx, os::args[1])) { ver: module::version => ver, err: module::error => fmt::fatal("Error scanning module: {}",