From: sfan5 Date: Sat, 6 Dec 2014 18:36:40 +0000 (+0100) Subject: Add workaround for failing clang build X-Git-Tag: 0.4.11~97 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4fcf9fb66a54d0f72b7338a2668b04236e69cc16;p=oweals%2Fminetest.git Add workaround for failing clang build --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 98a2f5a94..2fc30b842 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -645,6 +645,11 @@ else() endif(HAS_UNUSED_BUT_SET_VARIABLE_WARNING) endif() + if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") + # clang does not understand __extern_always_inline but libc headers use it + set(OTHER_FLAGS "${OTHER_FLAGS} \"-D__extern_always_inline=extern __always_inline\"") + endif() + if(MINGW) set(OTHER_FLAGS "-mthreads -fexceptions") endif()