From f2d55bb881902a808c18a7135ec2c257f463af95 Mon Sep 17 00:00:00 2001 From: Harry Prevor Date: Sun, 14 Jan 2018 21:48:01 -0500 Subject: [PATCH] fixed build for gcc c++17 / boost.icl incompatibility --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 09fe9bcd3..2af11a4e6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -134,6 +134,12 @@ else() set(CMAKE_EXE_LINKER_FLAGS_RELEASE "/DEBUG /MANIFEST:NO /INCREMENTAL:NO /OPT:REF,ICF" CACHE STRING "" FORCE) endif() +# Fix GCC C++17 and Boost.ICL incompatibility (needed to build dynarmic) +# See https://bugzilla.redhat.com/show_bug.cgi?id=1485641#c1 +if (CMAKE_COMPILER_IS_GNUCC) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-new-ttp-matching") +endif() + # Set file offset size to 64 bits. # # On modern Unixes, this is typically already the case. The lone exception is