From 54faca2a3152d5a27dc46e351396064e2083bb15 Mon Sep 17 00:00:00 2001 From: Emilio Corigliano <emilio.corigliano@skywarder.eu> Date: Mon, 18 Nov 2024 11:37:18 +0100 Subject: [PATCH] [cmake] Adding O3 optimization to the two libraries "to_protect" and "external" --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 19a8f8514..1cc0b4062 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) -- GitLab