From e985a9884a91fb2731eef3cfa2f68ad39e766e2e Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Mon, 1 Aug 2022 10:17:31 -0400 Subject: gperftools: make the "libunwind" variant conditional (#31673) libunwind is supported on Linux only --- var/spack/repos/builtin/packages/gperftools/package.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'var') 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") -- cgit v1.2.3-60-g2f50