File tree Expand file tree Collapse file tree 1 file changed +8
-12
lines changed Expand file tree Collapse file tree 1 file changed +8
-12
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments