File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -39,12 +39,15 @@ PYBIND11_NAMESPACE_BEGIN(detail)
39
39
// violations in binaries that are otherwise already fully tested and assumed to be healthy.
40
40
//
41
41
// * MSVC 2017 does not support __builtin_FILE(), __builtin_LINE().
42
+ // * MSVC 193732825 C++17 windows-2020 is failing for unknown reasons.
42
43
// * Intel 2021.6.0.20220226 (g++ 9.4 mode) __builtin_LINE() is unreliable
43
44
// (line numbers vary between translation units).
44
45
#if defined(PYBIND11_ENABLE_TYPE_CASTER_ODR_GUARD_IF_AVAILABLE) \
45
46
&& !defined(PYBIND11_ENABLE_TYPE_CASTER_ODR_GUARD) && defined(PYBIND11_CPP17) \
46
47
&& !defined(__INTEL_COMPILER) \
47
- && (!defined(_MSC_VER) || _MSC_VER >= 1920 ) // MSVC 2019 or newer.
48
+ && (!defined(_MSC_VER) \
49
+ || (_MSC_VER >= 1920 /* MSVC 2019 or newer */ \
50
+ && (_MSC_FULL_VER != 193732825 || defined(PYBIND11_CPP20))))
48
51
# define PYBIND11_ENABLE_TYPE_CASTER_ODR_GUARD
49
52
#endif
50
53
You can’t perform that action at this time.
0 commit comments