mirror of
https://github.com/pybind/pybind11.git
synced 2025-01-19 17:32:37 +00:00
Experiment: Try any C++17 compiler.
This commit is contained in:
parent
590171e6aa
commit
5aaf96a382
@ -6,7 +6,7 @@
|
||||
|
||||
#if !defined(PYBIND11_TYPE_CASTER_ODR_GUARD_ON) && !defined(PYBIND11_TYPE_CASTER_ODR_GUARD_OFF) \
|
||||
&& (defined(_MSC_VER) || defined(PYBIND11_CPP20) \
|
||||
|| (defined(PYBIND11_CPP17) && defined(__clang__)))
|
||||
|| (defined(PYBIND11_CPP17) /* && defined(__clang__)*/))
|
||||
# define PYBIND11_TYPE_CASTER_ODR_GUARD_ON
|
||||
#endif
|
||||
|
||||
@ -18,6 +18,10 @@
|
||||
|
||||
#else
|
||||
|
||||
# if defined(__GNUC__) && !defined(PYBIND11_CPP20)
|
||||
# pragma GCC diagnostic ignored "-Wsubobject-linkage"
|
||||
# endif
|
||||
|
||||
# include "common.h"
|
||||
# include "descr.h"
|
||||
# include "typeid.h"
|
||||
|
Loading…
Reference in New Issue
Block a user