python: add -fwrapv to cflags for python@3.8.0: %intel (#16592)
This commit is contained in:
parent
35c3478fcd
commit
fa702b8311
@ -258,6 +258,15 @@ def setup_build_environment(self, env):
|
||||
env.unset('PYTHONPATH')
|
||||
env.unset('PYTHONHOME')
|
||||
|
||||
def flag_handler(self, name, flags):
|
||||
# python 3.8 requires -fwrapv when compiled with intel
|
||||
if self.spec.satisfies('@3.8: %intel'):
|
||||
if name == 'cflags':
|
||||
flags.append('-fwrapv')
|
||||
|
||||
# allow flags to be passed through compiler wrapper
|
||||
return (flags, None, None)
|
||||
|
||||
def configure_args(self):
|
||||
spec = self.spec
|
||||
config_args = []
|
||||
|
Loading…
Reference in New Issue
Block a user