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:
@@ -17,18 +17,11 @@ endif
|
||||
|
||||
cflags += -isystem ../include
|
||||
|
||||
ldflags += -ffreestanding \
|
||||
-nostdlib \
|
||||
-fno-builtin \
|
||||
-fuse-ld=lld \
|
||||
-static
|
||||
|
||||
ifeq ($(buildtype),debug)
|
||||
ldflags += -g
|
||||
endif
|
||||
ldflags += --nostdlib \
|
||||
--static
|
||||
|
||||
ifeq ($(buildtype),release)
|
||||
ldflags += -Wl,--gc-sections \
|
||||
-Wl,--strip-all \
|
||||
-flto
|
||||
ldflags += --gc-sections \
|
||||
--strip-all \
|
||||
-O3
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user