PGI: Fix detection of C++ 14/17 modes

The PGI compiler is based on EDG.  Share conditions with Intel Classic.
This commit is contained in:
Brad King committed 2024-04-05 07:38:06 -04:00
1 parent 7f05d472a2
commit c9cc3dc646
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -64,7 +64,7 @@ char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
# else
# define CXX_STD __cplusplus
# endif
#elif defined(__INTEL_COMPILER)
#elif defined(__INTEL_COMPILER) || defined(__PGI)
# if __cplusplus == CXX_STD_11 && defined(__cpp_namespace_attributes)
# define CXX_STD CXX_STD_17
# elif __cplusplus == CXX_STD_11 && defined(__cpp_aggregate_nsdmi)
+1 -1
View File
@@ -33,7 +33,7 @@ struct Outputter;
# else
# define CXX_STD __cplusplus
# endif
#elif defined(__INTEL_COMPILER)
#elif defined(__INTEL_COMPILER) || defined(__PGI)
# if __cplusplus == CXX_STD_11 && defined(__cpp_namespace_attributes)
# define CXX_STD CXX_STD_17
# elif __cplusplus == CXX_STD_11 && defined(__cpp_aggregate_nsdmi)