spack/var/spack/repos/builtin/packages/libxml2/nvhpc-elfgcchack.patch
Scott McMillan 0015dd0bf8
Enable packages to use the NVIDIA HPC SDK (#19452)
* Enable packages to use the NVIDIA HPC SDK

* fix linter and review items

* fix linter issue

Co-authored-by: Scott McMillan <smcmillan@nvidia.com>
2020-10-22 16:42:48 -05:00

12 lines
307 B
Diff

--- a/elfgcchack.h 2020-08-19 07:55:24.340192000 -0700
+++ b/elfgcchack.h 2020-08-19 07:55:39.952437000 -0700
@@ -9,7 +9,7 @@
*/
#ifdef IN_LIBXML
-#ifdef __GNUC__
+#if defined __GNUC__ && !defined __NVCOMPILER
#ifdef PIC
#ifdef __linux__
#if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || (__GNUC__ > 3)