We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bb6163 commit 0c2a8a5Copy full SHA for 0c2a8a5
include/pybind11/detail/internals.h
@@ -292,11 +292,11 @@ struct type_info {
292
#endif
293
294
/// On Linux/OSX, changes in __GXX_ABI_VERSION__ indicate ABI incompatibility.
295
-/// On MSVC, changes in _MSC_VER may indicate ABI incompatibility (#2898).
+/// On MSVC, mixing /MT and /MD will result in crashes. See (#4779)
296
#ifndef PYBIND11_BUILD_ABI
297
# if defined(__GXX_ABI_VERSION)
298
# define PYBIND11_BUILD_ABI "_cxxabi" PYBIND11_TOSTRING(__GXX_ABI_VERSION)
299
-# elif defined(_MSC_VER)
+# elif defined(_MSC_VER) && defined(_MT)
300
# define PYBIND11_BUILD_ABI "_mscver" PYBIND11_TOSTRING(_MSC_VER)
301
# else
302
# define PYBIND11_BUILD_ABI ""
0 commit comments