Skip to content

Commit 0112bd8

Browse files
committed
CMake: remove clang workaround
1 parent 12e80c9 commit 0112bd8

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

cmake/FindCppcoroCoroutines.cmake

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,6 @@ if(Coroutines_SUPPORTS_MS_FLAG)
1515
elseif(Coroutines_ts_SUPPORTS_GNU_FLAG)
1616
check_include_file_cxx("coroutine" Coroutines_STANDARD_LIBRARY_SUPPORT "-fcoroutines-ts")
1717
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()
3318
elseif(Coroutines_SUPPORTS_GNU_FLAG)
3419
check_include_file_cxx("coroutine" Coroutines_STANDARD_LIBRARY_SUPPORT "-fcoroutines")
3520
check_include_file_cxx("experimental/coroutine" Coroutines_EXPERIMENTAL_LIBRARY_SUPPORT "-fcoroutines")

0 commit comments

Comments
 (0)