Use LLVM linker, Dockerfile now works without GCC
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m16s

This commit is contained in:
2026-03-07 10:41:35 +01:00
parent bc5b04d809
commit 955dbc7614
7 changed files with 19 additions and 33 deletions

View File

@@ -1,4 +1,5 @@
cc := clang
ld := ld.lld
o :=
c :=
ldflags += -L ../libsystem/build -l:libsystem.a -L ../liballoc/build -l:liballoc.a
@@ -12,7 +13,7 @@ include ../$(platform)/flags.mk
all: $(app)
$(app): $(o)
$(cc) -o $@ $(ldflags) -T ../$(platform)/link.ld $^
$(ld) -o $@ $(ldflags) -T ../$(platform)/link.ld $^
%.o: %.c
$(cc) -c -o $@ $(cflags) $<