os

An operating system
git clone https://erai.gay/code/os/
Log | Files | Refs | README | LICENSE

commit d600475997f93d49b214fa142b9c66dc22d9bdb1
parent 261f1f71bbb3e08d51f7ca810509c1cd69b22bca
Author: erai <erai@omiltem.net>
Date:   Wed,  9 Apr 2025 01:47:42 +0000

allow CC override in bootstrap

Diffstat:
Mbootstrap.sh | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bootstrap.sh b/bootstrap.sh @@ -5,7 +5,7 @@ LIBS="bufio.om lib.om alloc.om syscall.om" SOURCES="cc1.om type.om parse2.om peglib.om as.om decl.om node.om peg.om ir.om ircout.om rb.om table.om lexer.om lalr.om cc4.om" # Build the bootstrap compiler from c -[ cc0 -nt cc0.c ] || gcc -O1 -g -std=c89 ${BOOTSTRAP} -o cc0 +[ cc0 -nt cc0.c ] || ${CC:-gcc} -O1 -g ${BOOTSTRAP} -o cc0 ./cc0 ${LIBS} ${SOURCES} cc3.om -o cc1 -n cc1.lines -G cc1.call # Double check the bootstrap and self hosting compiler have the same output