BuildSystem: linker -O2 doesn't do anything? hopefully

This commit is contained in:
Bananymous 2023-05-06 18:14:45 +03:00
parent bcfd838131
commit 890aa9aa15
1 changed files with 1 additions and 1 deletions

View File

@ -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