summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Joe Lee <hyoklee@hdfgroup.org>2023-11-13 12:18:02 -0600
committerGitHub <noreply@github.com>2023-11-13 11:18:02 -0700
commit9c74eda61f2b2848d6b24e8ce7d142746a6ee300 (patch)
tree24bf344a0476eeaea68b1470afdc9fc87b13b9c3
parentd9de93a0fc816ae5b3d939173d2d8a861e222551 (diff)
downloadspack-9c74eda61f2b2848d6b24e8ce7d142746a6ee300.tar.gz
spack-9c74eda61f2b2848d6b24e8ce7d142746a6ee300.tar.bz2
spack-9c74eda61f2b2848d6b24e8ce7d142746a6ee300.tar.xz
spack-9c74eda61f2b2848d6b24e8ce7d142746a6ee300.zip
hdf5: add a new variant for enabling sub-filing VFD (#40804)
-rw-r--r--var/spack/repos/builtin/packages/hdf5/package.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/hdf5/package.py b/var/spack/repos/builtin/packages/hdf5/package.py
index a9e0574877..ffd91d3028 100644
--- a/var/spack/repos/builtin/packages/hdf5/package.py
+++ b/var/spack/repos/builtin/packages/hdf5/package.py
@@ -207,6 +207,7 @@ class Hdf5(CMakePackage):
variant("hl", default=False, description="Enable the high-level library")
variant("cxx", default=False, description="Enable C++ support")
variant("map", when="@1.14:", default=False, description="Enable MAP API support")
+ variant("subfiling", when="@1.14:", default=False, description="Enable Subfiling VFD support")
variant("fortran", default=False, description="Enable Fortran support")
variant("java", when="@1.10:", default=False, description="Enable Java support")
variant("threadsafe", default=False, description="Enable thread-safe capabilities")
@@ -329,7 +330,7 @@ class Hdf5(CMakePackage):
patch("fortran-kinds.patch", when="@1.10.7")
- # This patch may only be needed with GCC11.2 on macOS, but it's valid for
+ # This patch may only be needed with GCC 11.2 on macOS, but it's valid for
# any of the head HDF5 versions as of 12/2021. Since it's impossible to
# tell what Fortran version is part of a mixed apple-clang toolchain on
# macOS (which is the norm), and this might be an issue for other compilers
@@ -607,6 +608,7 @@ class Hdf5(CMakePackage):
# are enabled but the tests are disabled.
spec.satisfies("@1.8.22+shared+tools"),
),
+ self.define_from_variant("HDF5_ENABLE_SUBFILING_VFD", "subfiling"),
self.define_from_variant("HDF5_ENABLE_MAP_API", "map"),
self.define("HDF5_ENABLE_Z_LIB_SUPPORT", True),
self.define_from_variant("HDF5_ENABLE_SZIP_SUPPORT", "szip"),