From fefedbe653b50e459942cf308eff7d11206137d4 Mon Sep 17 00:00:00 2001 From: Ricardo Jesus Date: Mon, 19 Jul 2021 11:25:13 +0100 Subject: [PATCH] Remove -Wmissing-format-attribute if compiling with nvhpc (#24873) --- var/spack/repos/builtin/packages/libxslt/package.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/var/spack/repos/builtin/packages/libxslt/package.py b/var/spack/repos/builtin/packages/libxslt/package.py index c42240f303b..cecd64d4776 100644 --- a/var/spack/repos/builtin/packages/libxslt/package.py +++ b/var/spack/repos/builtin/packages/libxslt/package.py @@ -57,3 +57,8 @@ def import_module_test(self): 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')