hare

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

commit b2d50dc9e031fa4bcb8988cec90f3b1ac43ab469
parent 43566e16bb0174e5c8aab310c358a4a0e9e0b7cb
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sat,  3 Apr 2021 12:12:11 -0400

hare(1): improve module resolution docs

Diffstat:
Mdocs/hare.scd | 2+-
Mhare/module/scan.ha | 2--
2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/docs/hare.scd b/docs/hare.scd @@ -205,7 +205,7 @@ For example, if the following files are present in a directory: - bat-x86_64.ha If the build tags are +linux+x86_64, then the files which are included in the -module are foo.ha, bar+linux.ha, and bar+x86_64.s. +module are foo.ha, bar+linux.ha, and baz+x86_64.s. Additionally, subdirectories in a module will be considered part of that module if their name consists *only* of a tag set, e.g. "+linux" or "-x86_64". A diff --git a/hare/module/scan.ha b/hare/module/scan.ha @@ -150,8 +150,6 @@ fn scan_directory( // // In this case, foo+linux+x86_64 is the most specific, and so its used // as the build input and the other two files are discarded. - // - // TODO: Improve the documentation which describes this algorithm for (let i = 0z; i < len(dirs); i += 1) { let name = dirs[i];