From 0deda83d05fa71f578d1f63e4e97960e08b4d340 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Sat, 6 May 2023 18:14:45 +0300 Subject: [PATCH] BuildSystem: linker -O2 doesn't do anything? hopefully --- kernel/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/CMakeLists.txt b/kernel/CMakeLists.txt index 9a68d7d7..676f3935 100644 --- a/kernel/CMakeLists.txt +++ b/kernel/CMakeLists.txt @@ -129,7 +129,7 @@ elseif("${BANAN_ARCH}" STREQUAL "i386") target_link_options(kernel PUBLIC LINKER:-T,${CMAKE_CURRENT_SOURCE_DIR}/arch/i386/linker.ld) endif() -target_link_options(kernel PUBLIC -ffreestanding -nostdlib -O2) +target_link_options(kernel PUBLIC -ffreestanding -nostdlib) add_custom_target(crt0 COMMAND ${CMAKE_CXX_COMPILER} -c ${CMAKE_CURRENT_SOURCE_DIR}/arch/${BANAN_ARCH}/crt0.S -o ${BANAN_LIB}/crt0.o