gperftools: make the "libunwind" variant conditional (#31673)

libunwind is supported on Linux only
This commit is contained in:
Erik Schnetter 2022-08-01 10:17:31 -04:00 committed by GitHub
parent 532668af29
commit e985a9884a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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")