hare

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

commit b493cf9abe5e99e9446780df0b375c1db6fe5539
parent f4e6117dab50e4e7835f6a8ccc6eccbe4bf63849
Author: Sebastian <sebastian@sebsite.pw>
Date:   Fri, 12 May 2023 21:30:06 -0400

os: use libc exit when linking with libc

So atexit(3) functions are called

Signed-off-by: Sebastian <sebastian@sebsite.pw>

Diffstat:
Aos/+freebsd/exit+libc-test.ha | 2++
Aos/+linux/exit+libc-test.ha | 2++
2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/os/+freebsd/exit+libc-test.ha b/os/+freebsd/exit+libc-test.ha @@ -0,0 +1,2 @@ +// Exit the program with the provided status code. +export @symbol("exit") @noreturn fn exit(status: int) void; diff --git a/os/+linux/exit+libc-test.ha b/os/+linux/exit+libc-test.ha @@ -0,0 +1,2 @@ +// Exit the program with the provided status code. +export @symbol("exit") @noreturn fn exit(status: int) void;