diff options
author | Erik Schnetter <schnetter@gmail.com> | 2022-08-01 10:17:31 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-01 14:17:31 +0000 |
commit | e985a9884a91fb2731eef3cfa2f68ad39e766e2e (patch) | |
tree | 4d7af5d413d8ada59bba2023cd2f20f16c5a5325 /var | |
parent | 532668af291f9721c62bd4e32ad3932217a0b908 (diff) | |
download | spack-e985a9884a91fb2731eef3cfa2f68ad39e766e2e.tar.gz spack-e985a9884a91fb2731eef3cfa2f68ad39e766e2e.tar.bz2 spack-e985a9884a91fb2731eef3cfa2f68ad39e766e2e.tar.xz spack-e985a9884a91fb2731eef3cfa2f68ad39e766e2e.zip |
gperftools: make the "libunwind" variant conditional (#31673)
libunwind is supported on Linux only
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/gperftools/package.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/gperftools/package.py b/var/spack/repos/builtin/packages/gperftools/package.py index 0cc4b60a0d..11e5613cd4 100644 --- a/var/spack/repos/builtin/packages/gperftools/package.py +++ b/var/spack/repos/builtin/packages/gperftools/package.py @@ -31,7 +31,9 @@ class Gperftools(AutotoolsPackage): description="Try to build run-time switch for sized delete operator", ) variant("debugalloc", default=True, description="Build versions of libs with debugalloc") - variant("libunwind", default=True, description="Enable libunwind linking") + variant( + "libunwind", default=True, when="platform=linux", description="Enable libunwind linking" + ) depends_on("unwind", when="+libunwind") |