Be more precise when comparing compilation and runtime libc++.
For instance XCode 5.1 braught a libc++ that was sufficiently different to cause havok all over the place. Thus ABI_VERSION is clearly not enough.
This commit is contained in:
@ -120,9 +120,9 @@ namespace cling {
|
|||||||
#ifdef __GLIBCXX__
|
#ifdef __GLIBCXX__
|
||||||
# define CLING_CXXABIV __GLIBCXX__
|
# define CLING_CXXABIV __GLIBCXX__
|
||||||
# define CLING_CXXABIS "__GLIBCXX__"
|
# define CLING_CXXABIS "__GLIBCXX__"
|
||||||
#elif _LIBCPP_ABI_VERSION
|
#elif _LIBCPP_VERSION
|
||||||
# define CLING_CXXABIV _LIBCPP_ABI_VERSION
|
# define CLING_CXXABIV _LIBCPP_VERSION
|
||||||
# define CLING_CXXABIS "_LIBCPP_ABI_VERSION"
|
# define CLING_CXXABIS "_LIBCPP_VERSION"
|
||||||
#else
|
#else
|
||||||
# define CLING_CXXABIV -1 // intentionally invalid macro name
|
# define CLING_CXXABIV -1 // intentionally invalid macro name
|
||||||
# define CLING_CXXABIS "-1" // intentionally invalid macro name
|
# define CLING_CXXABIS "-1" // intentionally invalid macro name
|
||||||
|
Reference in New Issue
Block a user