python: add -fwrapv to cflags for python@3.8.0: %intel (#16592)

This commit is contained in:
Greg Becker 2020-05-11 16:02:56 -07:00 committed by GitHub
parent 35c3478fcd
commit fa702b8311
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = []