Skip to content
Snippets Groups Projects
Commit 54faca2a authored by Emilio Corigliano's avatar Emilio Corigliano
Browse files

[cmake] Adding O3 optimization to the two libraries "to_protect" and "external"

parent deaf9425
No related branches found
No related tags found
No related merge requests found
Pipeline #10463 failed
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment