aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2014-12-06 19:36:40 +0100
committersfan5 <sfan5@live.de>2014-12-06 19:56:31 +0100
commit4fcf9fb66a54d0f72b7338a2668b04236e69cc16 (patch)
tree09feb53ef1d9a344f1c1a4680cfbef45a8566655 /src
parent04a1a446cf845a0db80d39fd0e42771aa07e4492 (diff)
downloadminetest-4fcf9fb66a54d0f72b7338a2668b04236e69cc16.tar.gz
minetest-4fcf9fb66a54d0f72b7338a2668b04236e69cc16.tar.bz2
minetest-4fcf9fb66a54d0f72b7338a2668b04236e69cc16.zip
Add workaround for failing clang build
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
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()