mirror of
https://github.com/pybind/pybind11.git
synced 2025-01-18 17:05:53 +00:00
Apply suggestion by @isuruf, with revised comments (code is as suggested).
This commit is contained in:
parent
e071edc7d6
commit
ca9e6990de
@ -23,8 +23,14 @@
|
|||||||
# define PYBIND11_COMPILER_TYPE "gcc_cygwin"
|
# define PYBIND11_COMPILER_TYPE "gcc_cygwin"
|
||||||
# elif defined(_MSC_VER)
|
# elif defined(_MSC_VER)
|
||||||
# define PYBIND11_COMPILER_TYPE "msvc"
|
# define PYBIND11_COMPILER_TYPE "msvc"
|
||||||
# elif defined(__INTEL_COMPILER) || defined(__clang__) || defined(__GNUC__)
|
# elif defined(__GLIBC__) \
|
||||||
# define PYBIND11_COMPILER_TYPE "system" // Assumed compatible with system compiler.
|
&& (defined(__INTEL_COMPILER) || defined(__clang__) || defined(__GNUC__))
|
||||||
|
// // Compatibility is determined based on libstdc++ or libc++ ABI version (below).
|
||||||
|
# define PYBIND11_COMPILER_TYPE "glibc"
|
||||||
|
# elif defined(__APPLE__) \
|
||||||
|
&& (defined(__INTEL_COMPILER) || defined(__clang__) || defined(__GNUC__))
|
||||||
|
// // Compatibility is (usually) determined based on libc++ ABI version (below).
|
||||||
|
# define PYBIND11_COMPILER_TYPE "macos"
|
||||||
# else
|
# else
|
||||||
# error "Unknown PYBIND11_COMPILER_TYPE: PLEASE REVISE THIS CODE."
|
# error "Unknown PYBIND11_COMPILER_TYPE: PLEASE REVISE THIS CODE."
|
||||||
# endif
|
# endif
|
||||||
|
Loading…
Reference in New Issue
Block a user