On Mon, 2 Oct 2023 10:31:41 GMT, Andrew Leonard <aleon...@openjdk.org> wrote:
> 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. This pull request has now been integrated. Changeset: 353d1396 Author: Andrew Leonard <aleon...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/353d139682d530b74795cdca4753afba6766b2e3 Stats: 28 lines in 2 files changed: 28 ins; 0 del; 0 mod 8317340: Windows builds are not reproducible if MS VS compiler install path differs Reviewed-by: erikj ------------- PR: https://git.openjdk.org/jdk/pull/16008