summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Koyama <koysean@gmail.com>2023-05-16 02:16:21 +0900
committerGitHub <noreply@github.com>2023-05-15 12:16:21 -0500
commit7b0979c1e9f5ee4088755d7d89d30a8f96ef26fa (patch)
tree7f7411af9da639ee268daf83cca17f4805fcc112
parentc9849dd41d3b774acabeddc5d8099ee2e6b123e5 (diff)
downloadspack-7b0979c1e9f5ee4088755d7d89d30a8f96ef26fa.tar.gz
spack-7b0979c1e9f5ee4088755d7d89d30a8f96ef26fa.tar.bz2
spack-7b0979c1e9f5ee4088755d7d89d30a8f96ef26fa.tar.xz
spack-7b0979c1e9f5ee4088755d7d89d30a8f96ef26fa.zip
hwloc: explicitly disable building netloc for ~netloc (#35604)
* hwloc: explicitly disable building netloc for ~netloc * hwloc: update syntax for netloc variant configure argument --------- Co-authored-by: Sean Koyama <skoyama@anl.gov>
-rw-r--r--var/spack/repos/builtin/packages/hwloc/package.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/hwloc/package.py b/var/spack/repos/builtin/packages/hwloc/package.py
index 83b5e354ff..a8cb2b5c28 100644
--- a/var/spack/repos/builtin/packages/hwloc/package.py
+++ b/var/spack/repos/builtin/packages/hwloc/package.py
@@ -176,9 +176,7 @@ class Hwloc(AutotoolsPackage, CudaPackage, ROCmPackage):
args.append("--with-rocm={0}".format(self.spec["hip"].prefix))
args.append("--with-rocm-version={0}".format(self.spec["hip"].version))
- if "+netloc" in self.spec:
- args.append("--enable-netloc")
-
+ args.extend(self.enable_or_disable("netloc"))
args.extend(self.enable_or_disable("cairo"))
args.extend(self.enable_or_disable("nvml"))
args.extend(self.enable_or_disable("gl"))