Remove -Wmissing-format-attribute if compiling with nvhpc (#24873)

This commit is contained in:
Ricardo Jesus 2021-07-19 11:25:13 +01:00 committed by GitHub
parent be90bdc355
commit fefedbe653
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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')