From d9c4ef11954e344d0bf72e0bcb5c4e093ad25c89 Mon Sep 17 00:00:00 2001 From: Simon Byrne Date: Sun, 28 Nov 2021 22:11:57 -0800 Subject: [PATCH] [Open MPI] Use init_block to set env Fixes #390 and https://github.com/JuliaPackaging/BinaryBuilder.jl/issues/687 --- O/OpenMPI/build_tarballs.jl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/O/OpenMPI/build_tarballs.jl b/O/OpenMPI/build_tarballs.jl index 0397da9b742..aeec53590e7 100644 --- a/O/OpenMPI/build_tarballs.jl +++ b/O/OpenMPI/build_tarballs.jl @@ -85,6 +85,10 @@ dependencies = [ Dependency("CompilerSupportLibraries_jll"), ] +init_block = raw""" +ENV["OPAL_PREFIX"] = artifact_dir +""" + # Build the tarballs, and possibly a `build.jl` as well. build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies; - julia_compat="1.6", preferred_gcc_version=v"5") + julia_compat="1.6", preferred_gcc_version=v"5", init_block=init_block)