From 4b3799eaf4b7ef32eaf40910a7abf2719ce0fa6c Mon Sep 17 00:00:00 2001 From: Kimplul Date: Wed, 7 Jun 2023 21:30:44 +0300 Subject: slight improvements to building + User can now specify debug, release and assert handling --- arch/riscv64/source.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'arch/riscv64/source.mk') diff --git a/arch/riscv64/source.mk b/arch/riscv64/source.mk index 502b1f4..e4c1f10 100644 --- a/arch/riscv64/source.mk +++ b/arch/riscv64/source.mk @@ -3,12 +3,12 @@ KERNEL_SOURCES += $(KERNEL_LOCAL) INIT_SOURCES += $(ARCH_SOURCE)/init/*.[cS] # this doesn't work for rv32, but fine for now */ -ARCH_CFLAGS := -mcmodel=medany +ARCH_CFLAGS += -mcmodel=medany # oof, LLVM's riscv support has become better since I last looked into # it, but for some reason LTO still causes a crash. Meaning it has to be # disabled again, though for a different reason than last time -DEBUGFLAGS != [ $(LLVM) ] && echo $(DEBUGFLAGS:-flto=) || echo $(DEBUGFLAGS) +OPTFLAGS != [ "$(LLVM)" != "0" ] && echo $(OPTFLAGS:-flto=) || echo $(OPTFLAGS) run: $(ARCH_SOURCE)/conf/mkimage.sh $(ARCH) -- cgit v1.3