mirror of
https://github.com/boostorg/config.git
synced 2025-07-30 04:17:16 +02:00
Merge pull request #458 from boostorg/issue455
Clang should use _GLIBCXX_RELEASE
This commit is contained in:
@ -139,6 +139,13 @@
|
||||
//
|
||||
#ifdef __clang__
|
||||
|
||||
#ifdef _GLIBCXX_RELEASE
|
||||
# define BOOST_LIBSTDCXX_VERSION (_GLIBCXX_RELEASE * 10000 + 100)
|
||||
#else
|
||||
//
|
||||
// We figure out which gcc version issued this std lib
|
||||
// by checking which headers are available:
|
||||
//
|
||||
#if __has_include(<expected>)
|
||||
# define BOOST_LIBSTDCXX_VERSION 120100
|
||||
#elif __has_include(<source_location>)
|
||||
@ -170,6 +177,7 @@
|
||||
#elif __has_include(<array>)
|
||||
# define BOOST_LIBSTDCXX_VERSION 40300
|
||||
#endif
|
||||
#endif
|
||||
//
|
||||
// If BOOST_HAS_FLOAT128 is set, now that we know the std lib is libstdc++3, check to see if the std lib is
|
||||
// configured to support this type. If not disable it:
|
||||
|
Reference in New Issue
Block a user