Temporarily prevents #5749 from causing issues for the unknown user when compiling dev
Code taken from d65d285968
This commit is contained in:
parent
1fe03b298e
commit
49c4d0a27c
|
@ -44,6 +44,13 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION
|
||||||
"Building RawTherapee requires using GCC version 4.9 or higher!")
|
"Building RawTherapee requires using GCC version 4.9 or higher!")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# Warning for GCC 10, which causes problems #5749:
|
||||||
|
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "10.0")
|
||||||
|
message(STATUS "WARNING: gcc ${CMAKE_CXX_COMPILER_VERSION} is known to miscompile RawTherapee when using -ftree-loop-vectorize, forcing the option to be off")
|
||||||
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fno-tree-loop-vectorize")
|
||||||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-tree-loop-vectorize")
|
||||||
|
endif()
|
||||||
|
|
||||||
# We might want to build using the old C++ ABI, even when using a new GCC
|
# We might want to build using the old C++ ABI, even when using a new GCC
|
||||||
# version:
|
# version:
|
||||||
if(USE_OLD_CXX_ABI)
|
if(USE_OLD_CXX_ABI)
|
||||||
|
|
Loading…
Reference in New Issue