build: start playing with PGO
Nightly Release / build (push) Canceled after 0s
Sync branches with main / sync (push) Canceled after 0s
Nightly Release / release (push) Canceled after 0s
Nightly Release / cleanup (push) Canceled after 0s

This commit is contained in:
Anaël
2026-10-05 00:01:54 +02:00
parent 95111a621a
commit 7f5847c93e
2 changed files with 3 additions and 2 deletions
+3 -2
View File
@@ -57,14 +57,15 @@ function(configure_compiler_target target)
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
target_compile_options(${target} PRIVATE
$<$<AND:$<CONFIG:Debug>,$<COMPILE_LANGUAGE:C,CXX>>:-O0 -Wall>
$<$<AND:$<CONFIG:Release>,$<COMPILE_LANGUAGE:C,CXX>>:-O2 -w -flto>
$<$<AND:$<CONFIG:Release>,$<COMPILE_LANGUAGE:C,CXX>>:-O2 -w -flto -fprofile-generate>
)
target_link_options(${target} PRIVATE
$<$<CONFIG:Release>:-flto>
$<$<CONFIG:Release>:-flto -fprofile-generate>
)
endif()
endfunction()
link_directories("${CMAKE_CURRENT_SOURCE_DIR}/linux-includes/")
# ---
# Configuration
Binary file not shown.