summaryrefslogtreecommitdiff
path: root/mbld
diff options
context:
space:
mode:
Diffstat (limited to 'mbld')
-rw-r--r--mbld/util.myr4
1 files changed, 2 insertions, 2 deletions
diff --git a/mbld/util.myr b/mbld/util.myr
index 498d82d..443d127 100644
--- a/mbld/util.myr
+++ b/mbld/util.myr
@@ -53,7 +53,7 @@ const srcsplit = {src
platf = ""
suff = ""
- match std.strrfind(src, ".")
+ match std.strfind(src, ".")
| `std.Some i:
suff = src[i:]
src = src[:i]
@@ -86,7 +86,7 @@ const srcswapsuffix = {src, new
-> std.strcat(base, new)
elif std.hassuffix(suff, ".s")
-> std.strcat(base, new)
- elif std.hassuffix(suff, ".glue.c")
+ elif std.hassuffix(base, ".glue.c")
-> std.strjoin([base, ".glue", new][:], "")
else
std.fatal("unrecognized source {}\n", src)