< prev index next >

make/autoconf/util_windows.m4

Print this page

        

@@ -50,12 +50,20 @@
     $1="$windows_path"
   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
     windows_path=`cmd //c echo $unix_path`
     $1="$windows_path"
   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.wsl"; then
+    PATH_EXISTS=true
+    if test ! -e "$unix_path"; then
+      PATH_EXISTS=false
+      $TOUCH "$unix_path"
+    fi
     windows_path=`$WSLPATH -m "$unix_path"`
     $1="$windows_path"
+    if test $PATH_EXISTS = false; then
+      $RM "$unix_path"
+    fi
   fi
 ])
 
 # Helper function which possibly converts a path using DOS-style short mode.
 # If so, the updated path is stored in $new_path.
< prev index next >