aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2023-05-12 00:43:03 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2023-05-12 00:43:03 +0300
commit50693b398afd65120f6ac62b9b28c7af7765c75a (patch)
tree8b3fde1b17411f55f4aa4cb5794d9d03410d7cbc /arch
parent4cde8bceb1ff14896884c224850f6c7611551175 (diff)
downloadkmi-50693b398afd65120f6ac62b9b28c7af7765c75a.tar.gz
kmi-50693b398afd65120f6ac62b9b28c7af7765c75a.zip
disable LTO with LLVM
Diffstat (limited to 'arch')
-rw-r--r--arch/riscv64/source.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/riscv64/source.mk b/arch/riscv64/source.mk
index 321ba7c..502b1f4 100644
--- a/arch/riscv64/source.mk
+++ b/arch/riscv64/source.mk
@@ -5,6 +5,11 @@ INIT_SOURCES += $(ARCH_SOURCE)/init/*.[cS]
# this doesn't work for rv32, but fine for now */
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)
+
run:
$(ARCH_SOURCE)/conf/mkimage.sh $(ARCH)