diff --git a/kernel/CMakeLists.txt b/kernel/CMakeLists.txt index a5275692..c9a69f5c 100644 --- a/kernel/CMakeLists.txt +++ b/kernel/CMakeLists.txt @@ -125,7 +125,7 @@ target_compile_options(kernel PUBLIC -O2 -g) target_compile_options(kernel PUBLIC -Wno-literal-suffix) target_compile_options(kernel PUBLIC -fno-rtti -fno-exceptions) target_compile_options(kernel PUBLIC -fmacro-prefix-map=${CMAKE_CURRENT_SOURCE_DIR}=.) -target_compile_options(kernel PUBLIC -fstack-protector -ffreestanding -Wall -Wextra -Werror=return-type -Wstack-usage=1024 -fno-omit-frame-pointer -mno-sse -mno-sse2) +target_compile_options(kernel PUBLIC -fstack-protector -ffreestanding -Wall -Wextra -Werror=return-type -Wstack-usage=1024 -fno-omit-frame-pointer -mgeneral-regs-only) if(ENABLE_KERNEL_UBSAN) target_compile_options(kernel PUBLIC -fsanitize=undefined) diff --git a/libc/CMakeLists.txt b/libc/CMakeLists.txt index d11defbd..1287c4a0 100644 --- a/libc/CMakeLists.txt +++ b/libc/CMakeLists.txt @@ -30,6 +30,8 @@ add_custom_target(libc-headers add_library(libc ${LIBC_SOURCES}) add_dependencies(libc headers crt0) +target_compile_options(libc PUBLIC -g -Wstack-usage=512) + add_custom_target(libc-install COMMAND cp ${CMAKE_CURRENT_BINARY_DIR}/libc.a ${BANAN_LIB}/ DEPENDS libc diff --git a/userspace/CMakeLists.txt b/userspace/CMakeLists.txt index f71e8017..0e761a5f 100644 --- a/userspace/CMakeLists.txt +++ b/userspace/CMakeLists.txt @@ -24,7 +24,7 @@ add_custom_target(userspace) add_custom_target(userspace-install DEPENDS userspace) foreach(USERSPACE_PROJECT ${USERSPACE_PROJECTS}) - target_compile_options(${USERSPACE_PROJECT} PUBLIC -mno-sse -mno-sse2) + target_compile_options(${USERSPACE_PROJECT} PUBLIC -g) add_dependencies(userspace ${USERSPACE_PROJECT}) add_dependencies(userspace-install ${USERSPACE_PROJECT}-install) endforeach()