aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2025-05-25 15:33:35 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2025-05-25 15:33:35 +0530
commitd19e377907ed6845b17abbaaa663a42bcaf46032 (patch)
tree01f774d2fe6a80b2ff7f02aa441cebb1f21bed76
parentb97ad24cad6d886eee1c1dbe27ad6f73802f687b (diff)
build: set march to i386
Earlier, when optimizations were enabled, it generated a few ops that were invalid for the i386 CPU.
-rw-r--r--kernel/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
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