Add NVHPC (__PGI) to the list of compilers compatible with system compiler.

See comment by @robertmaynard: https://github.com/pybind/pybind11/pull/5439#issuecomment-2498839010
This commit is contained in:
Ralf W. Grosse-Kunstleve 2024-11-25 11:33:41 -08:00
parent 9acf764740
commit 9fc9515885
No known key found for this signature in database

View File

@ -29,9 +29,7 @@
# 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(__PGI) # elif defined(__INTEL_COMPILER) || defined(__PGI) || defined(__clang__) || defined(__GNUC__)
# define PYBIND11_COMPILER_TYPE "_pgi"
# elif defined(__INTEL_COMPILER) || defined(__clang__) || defined(__GNUC__)
# define PYBIND11_COMPILER_TYPE "_system" // Assumed compatible with system compiler. # define PYBIND11_COMPILER_TYPE "_system" // Assumed compatible with system compiler.
# else # else
# error "Unknown PYBIND11_COMPILER_TYPE: PLEASE REVISE THIS CODE." # error "Unknown PYBIND11_COMPILER_TYPE: PLEASE REVISE THIS CODE."