mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-29 14:53:18 +00:00
Enable -fexperimental-library when using clang libc++
This commit is contained in:
parent
e96e66eedd
commit
62741434db
1 changed files with 9 additions and 0 deletions
|
@ -96,6 +96,15 @@ if(HAVE_SEM_TIMEDWAIT OR WIN32)
|
||||||
add_compile_options(-DHAVE_SEM_TIMEDWAIT)
|
add_compile_options(-DHAVE_SEM_TIMEDWAIT)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
|
||||||
|
# libc++ requires -fexperimental-library to enable std::jthread and std::stop_token support.
|
||||||
|
include(CheckCXXSymbolExists)
|
||||||
|
check_cxx_symbol_exists(_LIBCPP_VERSION version LIBCPP)
|
||||||
|
if(LIBCPP)
|
||||||
|
add_compile_options(-fexperimental-library)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
add_subdirectory(externals)
|
add_subdirectory(externals)
|
||||||
include_directories(src)
|
include_directories(src)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue