python: improve building with Intel (#21134)

This commit is contained in:
Sergey Kosukhin 2021-01-18 19:44:22 +01:00 committed by GitHub
parent fa53838d2f
commit 723f132531
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -417,8 +417,8 @@ def configure_args(self):
config_args.append('--disable-toolbox-glue')
if spec.satisfies('%intel', strict=True) and \
spec.satisfies('@2.7.12:2.8,3.5.2:', strict=True):
config_args.append('--with-icc')
spec.satisfies('@2.7.12:2.8,3.5.2:3.7', strict=True):
config_args.append('--with-icc={0}'.format(spack_cc))
if '+debug' in spec:
config_args.append('--with-pydebug')