diff --git a/CMakeLists.txt b/CMakeLists.txt
index 19a8f8514e7e9800dd452e6c9d7c0a67e1e19cd3..1cc0b40621fdc8b0366feeda26b2e77eb1f39727 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -45,14 +45,14 @@ include(${BOARDCORE_PATH}/cmake/boardcore.cmake)
 
 # Create a library for the duplications
 add_library(to_protect_lib STATIC EXCLUDE_FROM_ALL ${PROTECT_SRC})
-target_compile_options(to_protect_lib PRIVATE -S -emit-llvm)
+target_compile_options(to_protect_lib PRIVATE -S -emit-llvm -O3)
 # add_options_boardcore_library(to_protect_lib PUBLIC ${BOARD_NAME})
 link_boardcore_submodules(to_protect_lib PUBLIC)
 link_boardcore_libraries(to_protect_lib PUBLIC)
 
 # Create a library for the board
 add_library(external_lib STATIC EXCLUDE_FROM_ALL ${BOARDCORE_SRC})
-target_compile_options(external_lib PRIVATE -S -emit-llvm)
+target_compile_options(external_lib PRIVATE -S -emit-llvm -O3)
 # add_options_boardcore_library(external_lib PUBLIC ${BOARD_NAME})
 link_boardcore_submodules(external_lib PUBLIC)
 link_boardcore_libraries(external_lib PUBLIC)