explicitly set -ftree-vectorize to get auto vectorizations even for builds using -o2 instead of -o3 (some distros do that for whatever reason)
This commit is contained in:
parent
bd9592cb1f
commit
7507b74d6f
@ -54,7 +54,8 @@ set(CACHE_NAME_SUFFIX "" CACHE STRING "RawTherapee's cache folder suffix")
|
||||
set(PROC_TARGET_NUMBER 0 CACHE STRING "Selected target processor from the list above (taken from ProcessorTargets.cmake)")
|
||||
|
||||
# Set special compilation flags for rtengine which get added to CMAKE_CXX_FLAGS:
|
||||
set(RTENGINE_CXX_FLAGS "" CACHE STRING "Special compilation flags for RTEngine")
|
||||
# Some Linux distros build with -O2 instead of -O3. We explicitly enable auto vectorization by using -ftree-vectorize
|
||||
set(RTENGINE_CXX_FLAGS "-ftree-vectorize" CACHE STRING "Special compilation flags for RTEngine")
|
||||
|
||||
# Loads the ProcessorTargets list:
|
||||
include(ProcessorTargets.cmake)
|
||||
|
Loading…
x
Reference in New Issue
Block a user