Skip to content

Commit b805dfe

Browse files
committed
make select_artifacts.jl work on 1.7
1 parent 99719f8 commit b805dfe

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

test/LAMMPS_jll/.pkg/platform_augmentation.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ function known_abis()
55
return (:MicrosoftMPI, :MPICH, :MPItrampoline)
66
end
77

8-
const abi = @load_preference("abi", Sys.iswindows() ? :MicrosoftMPI : :MPICH)
8+
const LAMMPS_UUID = parse(Base.UUID, "5b3ab26d-9607-527c-88ea-8fe5ba57cafe")
9+
10+
const abi = load_preference(LAMMPS_UUID, "abi", Sys.iswindows() ? :MicrosoftMPI : :MPICH)
911

1012
function set_abi(abi)
1113
if abi known_abis()
@@ -15,7 +17,7 @@ function set_abi(abi)
1517
$(known_abis())
1618
""")
1719
end
18-
@set_preferences!("abi" => string(abi))
20+
set_preferences!(LAMMPS_UUID, "abi" => string(abi), force=true)
1921
@warn "The MPI abi has changed, you will need to restart Julia for the change to take effect" abi
2022
return abi
2123
end

test/LAMMPS_jll/.pkg/select_artifacts.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
push!(LOAD_PATH, "..")
2+
13
using TOML, Artifacts, Base.BinaryPlatforms
24
include("./platform_augmentation.jl")
35
artifacts_toml = joinpath(dirname(@__DIR__), "Artifacts.toml")

0 commit comments

Comments
 (0)