summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/python/package.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/python/package.py b/var/spack/repos/builtin/packages/python/package.py
index a9b04a2d5b..aac98d11ad 100644
--- a/var/spack/repos/builtin/packages/python/package.py
+++ b/var/spack/repos/builtin/packages/python/package.py
@@ -258,6 +258,15 @@ class Python(AutotoolsPackage):
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 = []