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

This commit is contained in:
Bananymous 2023-05-06 18:14:45 +03:00
parent ff5bcd4416
commit 0deda83d05
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