Skip to content

Commit 969fa14

Browse files
authored
Add adjust_PATH and adjust_LIBPATH to System mpiexec
Makes it compatible with JLLWrappers (see #543)
1 parent 756ee25 commit 969fa14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/MPIPreferences/src/MPIPreferences.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ module System
2323
using Preferences
2424
const libmpi = @load_preference("libmpi")
2525
const mpiexec_path = @load_preference("mpiexec")
26-
mpiexec() = `$mpiexec_path`
27-
mpiexec(f) = f(`$mpiexec_path`)
26+
mpiexec(;adjust_PATH=true, adjust_LIBPATH=true) = `$mpiexec_path`
27+
mpiexec(f;adjust_PATH=true, adjust_LIBPATH=true) = f(`$mpiexec_path`)
2828
end
2929

3030
function use_jll_binary(binary = Sys.iswindows() ? "MicrosoftMPI_jll" : "MPICH_jll";export_prefs=false, force=true)

0 commit comments

Comments
 (0)