Fixed clang compile
This commit is contained in:
parent
2a3d8d46ec
commit
95ea0ef43d
@ -186,6 +186,11 @@ macro(set_exe_flags)
|
|||||||
|
|
||||||
# we support non-IEEE 754 fpus so can make no guarentees about error
|
# we support non-IEEE 754 fpus so can make no guarentees about error
|
||||||
add_flags_cxx("-ffast-math")
|
add_flags_cxx("-ffast-math")
|
||||||
|
|
||||||
|
# clang does not provide the __extern_always_inline macro and a part of libm depends on this when using fast-math
|
||||||
|
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
||||||
|
add_flags_cxx("-D__extern_always_inline=inline")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
endmacro()
|
endmacro()
|
||||||
|
Loading…
Reference in New Issue
Block a user