Skip to content

Commit fe2dbcb

Browse files
committed
PYBIND11_COMPILER_TYPE overhaul, mainly: replace _icc, _clang, _gcc with _system
1 parent 28081fc commit fe2dbcb

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

include/pybind11/conduit/pybind11_platform_abi_id.h

+8-12
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,18 @@
2323
// A user can manually set this string if they know their
2424
// compiler is compatible.
2525
#ifndef PYBIND11_COMPILER_TYPE
26-
# if defined(_MSC_VER)
27-
# define PYBIND11_COMPILER_TYPE "_msvc"
28-
# elif defined(__INTEL_COMPILER)
29-
# define PYBIND11_COMPILER_TYPE "_icc"
30-
# elif defined(__clang__)
31-
# define PYBIND11_COMPILER_TYPE "_clang"
32-
# elif defined(__PGI)
33-
# define PYBIND11_COMPILER_TYPE "_pgi"
34-
# elif defined(__MINGW32__)
26+
# if defined(__MINGW32__)
3527
# define PYBIND11_COMPILER_TYPE "_mingw"
3628
# elif defined(__CYGWIN__)
3729
# define PYBIND11_COMPILER_TYPE "_gcc_cygwin"
38-
# elif defined(__GNUC__)
39-
# define PYBIND11_COMPILER_TYPE "_gcc"
30+
# elif defined(_MSC_VER)
31+
# define PYBIND11_COMPILER_TYPE "_msvc"
32+
# elif defined(__PGI)
33+
# define PYBIND11_COMPILER_TYPE "_pgi"
34+
# elif defined(__INTEL_COMPILER) || defined(__clang__) || defined(__GNUC__)
35+
# define PYBIND11_COMPILER_TYPE "_system" // Assumed compatible with system compiler.
4036
# else
41-
# define PYBIND11_COMPILER_TYPE "_unknown"
37+
# error "Unknown PYBIND11_COMPILER_TYPE: PLEASE REVISE THIS CODE."
4238
# endif
4339
#endif
4440

0 commit comments

Comments
 (0)