feat(performance): add single-run timing and optimized symbol builds
This commit is contained in:
@@ -131,6 +131,15 @@ target_compile_options(
|
||||
$<$<CXX_COMPILER_ID:MSVC>:/W4 /WX /EHsc>
|
||||
)
|
||||
|
||||
# Profile the optimized production build with the same binary used for timing.
|
||||
foreach(_fesa_target fesa_solver fesa_cli)
|
||||
target_compile_options(${_fesa_target} PRIVATE
|
||||
$<$<AND:$<CXX_COMPILER_ID:MSVC>,$<CONFIG:Release>>:/Zi>)
|
||||
endforeach()
|
||||
target_link_options(fesa_cli PRIVATE
|
||||
$<$<AND:$<CXX_COMPILER_ID:MSVC>,$<CONFIG:Release>>:/DEBUG /OPT:REF /OPT:ICF>)
|
||||
unset(_fesa_target)
|
||||
|
||||
if(WIN32)
|
||||
if(NOT TARGET MKL::mkl_intel_thread OR NOT TARGET MKL::mkl_core OR
|
||||
NOT OMP_DLL_DIR OR NOT OMP_DLLNAME)
|
||||
|
||||
Reference in New Issue
Block a user