mbedtls: fix build with %nvhpc (#29850)
This commit is contained in:
parent
8ef299ed16
commit
d5a78d49fe
@ -75,6 +75,10 @@ def setup_build_environment(self, env):
|
||||
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')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user