mbedtls: fix build with %nvhpc (#29850)

This commit is contained in:
Harmen Stoppels 2022-04-04 08:58:19 +02:00 committed by GitHub
parent 8ef299ed16
commit d5a78d49fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,6 +75,10 @@ def setup_build_environment(self, env):
if 'shared' in self.spec.variants['libs'].value: if 'shared' in self.spec.variants['libs'].value:
env.set('SHARED', 'yes') 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): def build(self, spec, prefix):
make('no_test') make('no_test')