File tree 1 file changed +8
-12
lines changed
1 file changed +8
-12
lines changed Original file line number Diff line number Diff line change 23
23
// A user can manually set this string if they know their
24
24
// compiler is compatible.
25
25
#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__ )
35
27
# define PYBIND11_COMPILER_TYPE "_mingw"
36
28
# elif defined(__CYGWIN__ )
37
29
# 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.
40
36
# else
41
- # define PYBIND11_COMPILER_TYPE "_unknown "
37
+ # error "Unknown PYBIND11_COMPILER_TYPE: PLEASE REVISE THIS CODE. "
42
38
# endif
43
39
#endif
44
40
You can’t perform that action at this time.
0 commit comments