mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 07:39:26 +01:00
Workaround Freebsd/clang/fmt bug
This commit is contained in:
parent
1dbe2a4ea2
commit
12a5f73418
@ -440,6 +440,12 @@ if(CMAKE_SYSTEM_NAME MATCHES "FreeBSD|NetBSD")
|
|||||||
set(CMAKE_PREFIX_PATH "${CMAKE_PREFIX_PATH};/usr/local")
|
set(CMAKE_PREFIX_PATH "${CMAKE_PREFIX_PATH};/usr/local")
|
||||||
set(CMAKE_REQUIRED_INCLUDES "/usr/local/include")
|
set(CMAKE_REQUIRED_INCLUDES "/usr/local/include")
|
||||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -L/usr/local/lib")
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -L/usr/local/lib")
|
||||||
|
|
||||||
|
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 14.0)
|
||||||
|
# Workaround: the llvm libc++ and versions of clang eariler than 14 have a bug with consteval
|
||||||
|
# so we define FMT_CONSTEVAL to blank to just disable consteval in fmt
|
||||||
|
add_definitions(-DFMT_CONSTEVAL=)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Dolphin requires threads.
|
# Dolphin requires threads.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user