diff options
-rw-r--r-- | var/spack/repos/builtin/packages/mbedtls/package.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/mbedtls/package.py b/var/spack/repos/builtin/packages/mbedtls/package.py index 69acbc0089..3cc7d7a4e8 100644 --- a/var/spack/repos/builtin/packages/mbedtls/package.py +++ b/var/spack/repos/builtin/packages/mbedtls/package.py @@ -75,6 +75,10 @@ class Mbedtls(MakefilePackage): if 'shared' in self.spec.variants['libs'].value: env.set('SHARED', 'yes') + if '%nvhpc' in self.spec: + # -Wno-format-nonliteral is not supported. + env.set('WARNING_CFLAGS', '-Wall -Wextra -Wformat=2') + def build(self, spec, prefix): make('no_test') |