hare

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

commit 857ad8ca08f93337c54c3ae18af494230a3e5b70
parent 5bfc0d1d8fd18da5ac5ef4f432f0e33ed5bf4e9a
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sat, 13 Mar 2021 13:37:52 -0500

build, run: always link to rt

Diffstat:
Msubcmds.ha | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/subcmds.ha b/subcmds.ha @@ -84,6 +84,10 @@ fn build(args: []str) void = { }; let depends: []*task = []; + + // Always add rt (TODO: maybe a flag to turn this off?) + sched_module(&plan, ["rt"], &depends); + for (let i = 0z; i < len(ver.depends); i += 1z) { const dep = ver.depends[i]; sched_module(&plan, dep, &depends); @@ -166,6 +170,10 @@ fn run(args: []str) void = { }; let depends: []*task = []; + + // Always add rt (TODO: maybe a flag to turn this off?) + sched_module(&plan, ["rt"], &depends); + for (let i = 0z; i < len(ver.depends); i += 1z) { const dep = ver.depends[i]; sched_module(&plan, dep, &depends);