File tree 1 file changed +8
-2
lines changed 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 23
23
# define PYBIND11_COMPILER_TYPE "gcc_cygwin"
24
24
# elif defined(_MSC_VER )
25
25
# define PYBIND11_COMPILER_TYPE "msvc"
26
- # elif defined(__INTEL_COMPILER ) || defined(__clang__ ) || defined(__GNUC__ )
27
- # define PYBIND11_COMPILER_TYPE "system" // Assumed compatible with system compiler.
26
+ # elif defined(__GLIBC__ ) \
27
+ && (defined(__INTEL_COMPILER ) || defined(__clang__ ) || defined(__GNUC__ ))
28
+ // // Compatibility is determined based on libstdc++ or libc++ ABI version (below).
29
+ # define PYBIND11_COMPILER_TYPE "glibc"
30
+ # elif defined(__APPLE__ ) \
31
+ && (defined(__INTEL_COMPILER ) || defined(__clang__ ) || defined(__GNUC__ ))
32
+ // // Compatibility is (usually) determined based on libc++ ABI version (below).
33
+ # define PYBIND11_COMPILER_TYPE "macos"
28
34
# else
29
35
# error "Unknown PYBIND11_COMPILER_TYPE: PLEASE REVISE THIS CODE."
30
36
# endif
You can’t perform that action at this time.
0 commit comments