From 9fc951588594c48d4bfd440cd985ffee7be57ae4 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Mon, 25 Nov 2024 11:33:41 -0800 Subject: [PATCH] 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 --- include/pybind11/conduit/pybind11_platform_abi_id.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/pybind11/conduit/pybind11_platform_abi_id.h b/include/pybind11/conduit/pybind11_platform_abi_id.h index 1481d6e4d2..d1f22329ad 100644 --- a/include/pybind11/conduit/pybind11_platform_abi_id.h +++ b/include/pybind11/conduit/pybind11_platform_abi_id.h @@ -29,9 +29,7 @@ # define PYBIND11_COMPILER_TYPE "_gcc_cygwin" # elif defined(_MSC_VER) # define PYBIND11_COMPILER_TYPE "_msvc" -# elif defined(__PGI) -# define PYBIND11_COMPILER_TYPE "_pgi" -# elif defined(__INTEL_COMPILER) || defined(__clang__) || defined(__GNUC__) +# elif defined(__INTEL_COMPILER) || defined(__PGI) || defined(__clang__) || defined(__GNUC__) # define PYBIND11_COMPILER_TYPE "_system" // Assumed compatible with system compiler. # else # error "Unknown PYBIND11_COMPILER_TYPE: PLEASE REVISE THIS CODE."