File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -15,21 +15,6 @@ if(Coroutines_SUPPORTS_MS_FLAG)
15
15
elseif (Coroutines_ts_SUPPORTS_GNU_FLAG)
16
16
check_include_file_cxx("coroutine" Coroutines_STANDARD_LIBRARY_SUPPORT "-fcoroutines-ts" )
17
17
check_include_file_cxx("experimental/coroutine" Coroutines_EXPERIMENTAL_LIBRARY_SUPPORT "-fcoroutines-ts" )
18
- # workaround:
19
- # clang not find stdlibc++ headers when on ubuntu 20.04
20
- # So, we retry with libc++ enforcement
21
- if (NOT Coroutines_STANDARD_LIBRARY_SUPPORT
22
- AND NOT Coroutines_EXPERIMENTAL_LIBRARY_SUPPORT
23
- AND CMAKE_CXX_COMPILER_ID MATCHES Clang)
24
- set (CMAKE_REQUIRED_FLAGS "-stdlib=libc++" )
25
- check_include_file_cxx("coroutine" Coroutines_STANDARD_LIBRARY_SUPPORT_LIBCPP "-fcoroutines-ts" )
26
- check_include_file_cxx("experimental/coroutine" Coroutines_EXPERIMENTAL_LIBRARY_SUPPORT_LIBCPP "-fcoroutines-ts" )
27
- if (Coroutines_STANDARD_LIBRARY_SUPPORT_LIBCPP OR Coroutines_EXPERIMENTAL_LIBRARY_SUPPORT_LIBCPP)
28
- list (APPEND Coroutines_EXTRA_FLAGS "-stdlib=libc++" )
29
- set (Coroutines_STANDARD_LIBRARY_SUPPORT ${Coroutines_STANDARD_LIBRARY_SUPPORT_LIBCPP} )
30
- set (Coroutines_EXPERIMENTAL_LIBRARY_SUPPORT ${Coroutines_EXPERIMENTAL_LIBRARY_SUPPORT_LIBCPP} )
31
- endif ()
32
- endif ()
33
18
elseif (Coroutines_SUPPORTS_GNU_FLAG)
34
19
check_include_file_cxx("coroutine" Coroutines_STANDARD_LIBRARY_SUPPORT "-fcoroutines" )
35
20
check_include_file_cxx("experimental/coroutine" Coroutines_EXPERIMENTAL_LIBRARY_SUPPORT "-fcoroutines" )
You can’t perform that action at this time.
0 commit comments