mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-27 22:43:36 +00:00
output optimization report if enable-profiling=1
This commit is contained in:
parent
dd2b78a842
commit
df6fad7d83
1 changed files with 9 additions and 0 deletions
|
@ -265,6 +265,15 @@ endif ( enable-floats )
|
|||
unset ( WITH_PROFILING CACHE )
|
||||
if ( enable-profiling )
|
||||
set ( WITH_PROFILING 1 )
|
||||
if ( CMAKE_C_COMPILER_ID STREQUAL "Clang" )
|
||||
set ( OPT_FLAGS "-Rpass=loop-vectorize -Rpass-analysis=loop-vectorize" )
|
||||
elseif ( CMAKE_C_COMPILER_ID STREQUAL "Intel" )
|
||||
set ( OPT_FLAGS "-qopt-report=3" )
|
||||
endif ( )
|
||||
|
||||
set ( CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} ${OPT_FLAGS}" )
|
||||
set ( CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} ${OPT_FLAGS}" )
|
||||
set ( CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO} ${OPT_FLAGS}" )
|
||||
endif ( enable-profiling )
|
||||
|
||||
unset ( ENABLE_TRAPONFPE CACHE )
|
||||
|
|
Loading…
Reference in a new issue