File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -844,15 +844,20 @@ AC_DEFUN([FLAGS_SETUP_CFLAGS_CPU_DEP],
844
844
]
845
845
)
846
846
if test "x$FILE_MACRO_CFLAGS" != x; then
847
- # Add -pathmap for all VS system include paths using Windows
848
- # full Long path name that is generated by the compiler
847
+ # Add -pathmap for all VS system include paths using Windows
848
+ # full Long path name that is generated by the compiler
849
+ # Not enabled under WSL as there is no easy way to obtain the
850
+ # Windows full long paths, thus reproducible WSL builds will
851
+ # depend on building with the same VS toolchain install location.
852
+ if test "x$OPENJDK_BUILD_OS_ENV" != "xwindows.wsl1" && test "x$OPENJDK_BUILD_OS_ENV" != "xwindows.wsl2"; then
849
853
for ipath in ${$3 SYSROOT_CFLAGS}; do
850
854
if test "x${ipath:0:2}" == "x-I"; then
851
855
ipath_path=${ipath#"-I"}
852
856
UTIL_FIXUP_WIN_LONG_PATH(ipath_path)
853
857
FILE_MACRO_CFLAGS="$FILE_MACRO_CFLAGS -pathmap:\"$ipath_path\"=vsi"
854
858
fi
855
859
done
860
+ fi
856
861
fi
857
862
fi
858
863
Original file line number Diff line number Diff line change @@ -120,6 +120,7 @@ AC_DEFUN([UTIL_FIXUP_PATH],
120
120
121
121
# #############################################################################
122
122
# Fixup path to be a Windows full long path
123
+ # Note: Only supported with cygwin/msys2 (cygpath tool)
123
124
AC_DEFUN ( [ UTIL_FIXUP_WIN_LONG_PATH] ,
124
125
[
125
126
# Only process if variable expands to non-empty
You can’t perform that action at this time.
0 commit comments