Use LLVM linker, Dockerfile now works without GCC
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m16s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m16s
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
cc := clang
|
||||
ld := ld.lld
|
||||
o :=
|
||||
c :=
|
||||
ldflags :=
|
||||
@@ -12,7 +13,7 @@ include make/src.mk
|
||||
all: build/kernel.elf
|
||||
|
||||
build/kernel.elf: $(o)
|
||||
$(cc) -o $@ $(ldflags) -T $(platform)/link.ld $^
|
||||
$(ld) -o $@ $(ldflags) -T $(platform)/link.ld $^
|
||||
|
||||
%.o: %.c
|
||||
$(cc) -c -o $@ $(cflags) $<
|
||||
|
||||
Reference in New Issue
Block a user