Merge pull request #1 from Beep6581/dev

Temporarily prevents #5749 from causing issues for the unknown user w…
This commit is contained in:
dheijl
2020-06-05 13:03:41 +02:00
committed by GitHub

View File

@@ -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)