On Tue, 7 Jun 2022 19:57:48 GMT, Alexey Pavlyutkin <d...@openjdk.java.net> wrote:
> Hi! > > Here is a fix to jdk.jdi that fixes reproducible build for Windows. The idea > of the fix is to re-use value of --with-hotspot-build-time option to generate > deterministic timestamp exactly like it's done to hotspot component. > > Verification (Windows-10/MSVS-2019): ```bash ./configure > --with-boot-jdk=c:/work/boot-jdk/jdk-18 --with-debug-level=fastdebug > --with-hotspot-build-time="6/7/2022 2:35pm" > --with-extra-cflags="/experimental:deterministic" > --with-extra-cxxflags="/experimental:deterministic"``` > > Regression (Windows-10/MSVS-2019): ```bash ./configure > --with-boot-jdk=c:/work/boot-jdk/jdk-18 --with-debug-level=fastdebug``` This pull request has now been integrated. Changeset: a9d46f34 Author: Alexey Pavlyutkin <apavlyut...@azul.com> Committer: Yuri Nesterenko <y...@openjdk.org> URL: https://git.openjdk.java.net/jdk/commit/a9d46f3413ef64c87520509fd70ac42629fbce91 Stats: 21 lines in 3 files changed: 14 ins; 0 del; 7 mod 8287894: Use fixed timestamp as an alternative of __DATE__ macro in jdk.jdi to make Windows build reproducible Reviewed-by: erikj, ihse ------------- PR: https://git.openjdk.java.net/jdk/pull/9070