The microsoft toolchain now supports a new "deterministic" build mode. This goes a long way towards building properly deterministic. Another important feature is that with the deterministic build mode enabled, the -pathmap flag, similar to gcc's -fmacro-prefix-map, is enabled.
------------- Commit messages: - 8256240: Reproducible builds should turn on the "deterministic" flag for Visual Studio Changes: https://git.openjdk.java.net/jdk/pull/1287/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=1287&range=00 Issue: https://bugs.openjdk.java.net/browse/JDK-8256240 Stats: 68 lines in 4 files changed: 48 ins; 14 del; 6 mod Patch: https://git.openjdk.java.net/jdk/pull/1287.diff Fetch: git fetch https://git.openjdk.java.net/jdk pull/1287/head:pull/1287 PR: https://git.openjdk.java.net/jdk/pull/1287