From a9a5e427338014189295728bdd1550722e9f7bf8 Mon Sep 17 00:00:00 2001 From: thedoctar Date: Thu, 18 Nov 2021 22:02:03 +0100 Subject: [PATCH] Fix compilation bug For newer versions of gcc, -Wexpansion-to-defined throws an error for the header compiler_features.h. I turn of the flag here. (see also : https://bugs.webkit.org/show_bug.cgi?id=172618) --- src/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 65f51db..16ecee9 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -216,6 +216,8 @@ elseif( CMAKE_COMPILER_IS_GNUCXX ) set( CMAKE_CXX_FLAGS "-pthread ${CMAKE_CXX_FLAGS}" ) set( CMAKE_C_FLAGS "-std=c11 -Wall -pedantic-errors -pthread ${CMAKE_C_FLAGS}" ) + set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-expansion-to-defined" ) + if( BUILD64 ) set( CMAKE_CXX_FLAGS "-m64 ${CMAKE_CXX_FLAGS}" )