File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 11
2+ include (CheckSymbolExists)
3+ check_symbol_exists(_LIBCPP_VERSION "version" HAVE_LIBCPP_VERSION)
4+ check_symbol_exists(__GLIBCXX__ "version" HAVE___GLIBCXX__)
5+
26if (NOT APPLE )
37 add_subdirectory (cxxshim)
48endif ()
5- if (LINUX )
9+ if (HAVE___GLIBCXX__ )
610 add_subdirectory (libstdcxx)
711endif ()
812add_subdirectory (std)
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ target_compile_options(swiftCxxStdlib PRIVATE
2222target_compile_options (swiftCxxStdlib PRIVATE
2323 "$<$<PLATFORM_ID:Android>:SHELL:-Xcc --sysroot -Xcc ${CMAKE_ANDROID_NDK_TOOLCHAIN_UNIFIED} /sysroot>" )
2424target_link_libraries (swiftCxxStdlib PRIVATE
25- $<$<PLATFORM_ID:Linux >:libstdcxx>
25+ $<$<BOOL : ${HAVE___GLIBCXX__} >:libstdcxx>
2626 $<$<NOT :$<PLATFORM_ID:Darwin>>:cxxshim>
2727 swiftCxx
2828 swiftCore
You can’t perform that action at this time.
0 commit comments