summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Jesus <rj.bcjesus@gmail.com>2021-07-19 11:25:13 +0100
committerGitHub <noreply@github.com>2021-07-19 12:25:13 +0200
commitfefedbe653b50e459942cf308eff7d11206137d4 (patch)
treef6a75acd6dd3783053c309a536cffc2145bd0fa9
parentbe90bdc355b4473d95ba823d654eecf82259c696 (diff)
downloadspack-fefedbe653b50e459942cf308eff7d11206137d4.tar.gz
spack-fefedbe653b50e459942cf308eff7d11206137d4.tar.bz2
spack-fefedbe653b50e459942cf308eff7d11206137d4.tar.xz
spack-fefedbe653b50e459942cf308eff7d11206137d4.zip
Remove -Wmissing-format-attribute if compiling with nvhpc (#24873)
-rw-r--r--var/spack/repos/builtin/packages/libxslt/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libxslt/package.py b/var/spack/repos/builtin/packages/libxslt/package.py
index c42240f303..cecd64d477 100644
--- a/var/spack/repos/builtin/packages/libxslt/package.py
+++ b/var/spack/repos/builtin/packages/libxslt/package.py
@@ -57,3 +57,8 @@ class Libxslt(AutotoolsPackage):
if '+python' in self.spec:
with working_dir('spack-test', create=True):
python('-c', 'import libxslt')
+
+ def patch(self):
+ # Remove flags not recognized by the NVIDIA compiler
+ if self.spec.satisfies('%nvhpc'):
+ filter_file('-Wmissing-format-attribute', '', 'configure')