mirror of
				https://github.com/luanti-org/luanti.git
				synced 2025-11-04 09:15:29 +01:00 
			
		
		
		
	Add workaround for failing clang build
This commit is contained in:
		@@ -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()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user