Skip to content

Commit 62a88a9

Browse files
authored
[Runner] Use -Wl,--no-insert-timestamp on Windows, for reproducibility (#277)
1 parent 7721c30 commit 62a88a9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Runner.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,10 @@ function generate_compiler_wrappers!(platform::AbstractPlatform; bin_path::Abstr
513513
])
514514
elseif Sys.isapple(p)
515515
push!(flags, "-headerpad_max_install_names")
516+
elseif Sys.iswindows(p) && gcc_version v"5"
517+
# Do not embed timestamps, for reproducibility:
518+
# https://github.com/JuliaPackaging/BinaryBuilder.jl/issues/1232
519+
push!(flags, "-Wl,--no-insert-timestamp")
516520
end
517521
sanitize_link_flags!(p, flags)
518522
return flags

0 commit comments

Comments
 (0)