mpip: fix package to depends on libunwind when +libunwind (#24007)

Added a dependency for mpip@3.5: when the libunwind is set to true (which is the default)
and '~setjmp' is set to False (which is also the default) to avoid a configure
time error from not finding libunwind.

Co-authored-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
This commit is contained in:
lukebroskop 2021-09-08 14:34:39 -05:00 committed by GitHub
parent e47f0d486c
commit f9314d38b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,9 +59,8 @@ class Mpip(AutotoolsPackage):
depends_on('python@:2', when='@3.4.1', type='build')
depends_on('mpi')
# Ideally would use libunwind, but provide backtrace and
# setjmp functionality, if needed
# depends_on('unwind')
# '+setjmp' adds '--disable-libunwind' to the confiure args
depends_on('unwind', when='@3.5: +libunwind ~setjmp')
@when('@3.5:')
def configure_args(self):