From d19e377907ed6845b17abbaaa663a42bcaf46032 Mon Sep 17 00:00:00 2001 From: Raghuram Subramani Date: Sun, 25 May 2025 15:33:35 +0530 Subject: build: set march to i386 Earlier, when optimizations were enabled, it generated a few ops that were invalid for the i386 CPU. --- kernel/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/CMakeLists.txt b/kernel/CMakeLists.txt index ba39d83..998a2a8 100644 --- a/kernel/CMakeLists.txt +++ b/kernel/CMakeLists.txt @@ -40,6 +40,8 @@ add_executable(kernel ${SRC}) target_include_directories(kernel PRIVATE include) set(C_COMPILE_OPTIONS + -march=i386 + -ffreestanding -fstack-protector -- cgit v1.2.3