commit 338ac29270c37b71f8df2e48bd106d22063b71e9
parent d6aa81aa1eef2511c5746caeb07ceb4d57d4f865
Author: Drew DeVault <sir@cmpwn.com>
Date: Thu, 4 Feb 2021 14:32:57 -0500
Update stdlib
Diffstat:
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/gen-stdlib b/gen-stdlib
@@ -25,6 +25,7 @@ gensrcs_rt() {
'$(PLATFORM)/syscallno$(ARCH).ha' \
'$(PLATFORM)/syscalls.ha' \
'$(PLATFORM)/segmalloc.ha' \
+ ensure.ha \
malloc.ha \
memcpy.ha \
memset.ha \
@@ -109,6 +110,7 @@ io() {
# Sort it to see what the problem is if you don't understand
printf '# io\n'
gen_srcs io \
+ 'arch$(ARCH).ha' \
types.ha \
copy.ha \
println.ha \
diff --git a/mk/stdlib.mk b/mk/stdlib.mk
@@ -10,6 +10,7 @@ stdlib_rt_srcs= \
$(STDLIB)/rt/$(PLATFORM)/syscallno$(ARCH).ha \
$(STDLIB)/rt/$(PLATFORM)/syscalls.ha \
$(STDLIB)/rt/$(PLATFORM)/segmalloc.ha \
+ $(STDLIB)/rt/ensure.ha \
$(STDLIB)/rt/malloc.ha \
$(STDLIB)/rt/memcpy.ha \
$(STDLIB)/rt/memset.ha \
@@ -101,6 +102,7 @@ hare_stdlib_deps+=$(stdlib_stdlib_strconv)
# io
stdlib_io_srcs= \
+ $(STDLIB)/io/arch$(ARCH).ha \
$(STDLIB)/io/types.ha \
$(STDLIB)/io/copy.ha \
$(STDLIB)/io/println.ha \
@@ -188,6 +190,7 @@ testlib_rt_srcs= \
$(STDLIB)/rt/$(PLATFORM)/syscallno$(ARCH).ha \
$(STDLIB)/rt/$(PLATFORM)/syscalls.ha \
$(STDLIB)/rt/$(PLATFORM)/segmalloc.ha \
+ $(STDLIB)/rt/ensure.ha \
$(STDLIB)/rt/malloc.ha \
$(STDLIB)/rt/memcpy.ha \
$(STDLIB)/rt/memset.ha \
@@ -279,6 +282,7 @@ hare_testlib_deps+=$(testlib_testlib_strconv)
# io
testlib_io_srcs= \
+ $(STDLIB)/io/arch$(ARCH).ha \
$(STDLIB)/io/types.ha \
$(STDLIB)/io/copy.ha \
$(STDLIB)/io/println.ha \