Skip to content

Commit 027b051

Browse files
authored
Add comment to top of auto-generated deps.jl file (#493)
1 parent 1c04210 commit 027b051

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

deps/build.jl

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ elseif binary == ""
164164
end
165165
end
166166
end
167-
elseif binary == "MPICH_jll"
167+
elseif binary == "MPICH_jll"
168168
@info "using MPICH_jll"
169169
deps = quote
170170
using MPICH_jll
@@ -173,7 +173,7 @@ elseif binary == "MPICH_jll"
173173
const mpiexec_path = MPICH_jll.mpiexec_path
174174
__init__deps() = nothing
175175
end
176-
elseif binary == "OpenMPI_jll"
176+
elseif binary == "OpenMPI_jll"
177177
@info "using OpenMPI_jll"
178178
deps = quote
179179
using OpenMPI_jll
@@ -188,7 +188,7 @@ elseif binary == "OpenMPI_jll"
188188
ENV["OPAL_PREFIX"] = OpenMPI_jll.artifact_dir
189189
end
190190
end
191-
elseif binary == "MicrosoftMPI_jll"
191+
elseif binary == "MicrosoftMPI_jll"
192192
@info "using MicrosoftMPI_jll"
193193
deps = quote
194194
using MicrosoftMPI_jll
@@ -214,7 +214,12 @@ end
214214

215215
# only update deps.jl if it has changed.
216216
# allows users to call Pkg.build("MPI") without triggering another round of precompilation
217-
deps_str = string(remove_line_numbers(deps))
217+
deps_str =
218+
"""
219+
# This file has been generated automatically.
220+
# It will be overwritten the next time `Pkg.build("MPI")` is called.
221+
""" *
222+
string(remove_line_numbers(deps))
218223

219224
if !isfile("deps.jl") || deps_str != read("deps.jl", String)
220225
write("deps.jl", deps_str)

0 commit comments

Comments
 (0)