diff --git a/var/spack/repos/builtin/packages/hdf/package.py b/var/spack/repos/builtin/packages/hdf/package.py index 0c4a6ad821aca0..8e51dab8169f55 100644 --- a/var/spack/repos/builtin/packages/hdf/package.py +++ b/var/spack/repos/builtin/packages/hdf/package.py @@ -153,7 +153,7 @@ def flag_handler(self, name, flags): ): flags.append("-Wno-error=implicit-function-declaration") - if ( + if ( self.spec.satisfies("%clang@16:") or self.spec.satisfies("%apple-clang@15:") or self.spec.satisfies("%oneapi")