Skip to content

Commit 3262bfd

Browse files
committed
Isolate potentially ABI-compatible MSVC builds
See pybind11 issue pybind/pybind11#4779
1 parent c65bb40 commit 3262bfd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/nb_internals.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,11 @@
5656
#endif
5757

5858
/// On Linux/OSX, changes in __GXX_ABI_VERSION__ indicate ABI incompatibility.
59+
/// Also keep potentially ABI-incompatible visual studio builds apart.
5960
#if defined(__GXX_ABI_VERSION)
6061
# define NB_BUILD_ABI "_cxxabi" NB_TOSTRING(__GXX_ABI_VERSION)
62+
#elif defined(_MSC_VER)
63+
# define NB_BUILD_ABI "_mscver" NB_TOSTRING(_MSC_VER)
6164
#else
6265
# define NB_BUILD_ABI ""
6366
#endif

0 commit comments

Comments
 (0)