When doing a reproducible Windows build on two different machines, that
happen to have MS Visual Studio installed in different paths, the resulting
builds are not identical. This is due to the System include paths, eg:

C:\Program Files\Microsoft Visual 
Studio\2022\Community\VC\Tools\MSVC\14.37.32822\include\vcruntime_new.h

appearing in the compiler obj as part of debug info.

This PR tests when doing a Windows no-Absolute paths allowed build, and then
adds -pathmap:<VS_include_long_path\>=vsi entries to re-map those entries in
the compiler object.
The VS cl compiler generates these paths as standard Windows "long path" 
entries,
and must be pathmap'd as such.

-------------

Commit messages:
 - 8317340: Windows builds are not reproducible if MS VS compiler install path 
differs

Changes: https://git.openjdk.org/jdk/pull/16008/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=16008&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8317340
  Stats: 28 lines in 2 files changed: 28 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/16008.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/16008/head:pull/16008

PR: https://git.openjdk.org/jdk/pull/16008

Reply via email to