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 7e418f4 commit 607812aCopy full SHA for 607812a
include/pybind11/detail/internals.h
@@ -311,11 +311,11 @@ struct type_info {
311
#endif
312
313
/// On Linux/OSX, changes in __GXX_ABI_VERSION__ indicate ABI incompatibility.
314
-/// On MSVC, changes in _MSC_VER may indicate ABI incompatibility (#2898).
+/// On MSVC, mixing /MT and /MD will result in crashes. See (#4779)
315
#ifndef PYBIND11_BUILD_ABI
316
# if defined(__GXX_ABI_VERSION)
317
# define PYBIND11_BUILD_ABI "_cxxabi" PYBIND11_TOSTRING(__GXX_ABI_VERSION)
318
-# elif defined(_MSC_VER)
+# elif defined(_MSC_VER) && defined(_MT)
319
# define PYBIND11_BUILD_ABI "_mscver" PYBIND11_TOSTRING(_MSC_VER)
320
# else
321
# define PYBIND11_BUILD_ABI ""
0 commit comments