Skip to content

Commit

Permalink
Use static if block to fix 1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
mkitti committed Aug 20, 2023
1 parent b7860d7 commit 91f27bc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ using HDF5
using Test
using Pkg
filter_path = joinpath(dirname(pathof(HDF5)), "..", "filters")
if VERSION > v"1.3" &&
!Base.BinaryPlatforms.CPUID.test_cpu_feature(Base.BinaryPlatforms.CPUID.JL_X86_avx2)
Pkg.add(PackageSpec(; name="Blosc_jll", version=v"1.21.2+0"))
@static if VERSION > v"1.3"
if !Base.BinaryPlatforms.CPUID.test_cpu_feature(Base.BinaryPlatforms.CPUID.JL_X86_avx2)
Pkg.add(PackageSpec(; name="Blosc_jll", version=v"1.21.2+0"))
end
end
Pkg.develop([
PackageSpec(; path=joinpath(filter_path, "H5Zblosc")),
Expand Down

0 comments on commit 91f27bc

Please sign in to comment.