make/autoconf/spec.gmk.in
branchJDK-8215445-branch
changeset 57074 12615de8335e
parent 52774 56ca125c973b
child 57075 168830ded68a
--- a/make/autoconf/spec.gmk.in	Fri Dec 14 17:08:58 2018 -0800
+++ b/make/autoconf/spec.gmk.in	Fri Dec 14 17:12:14 2018 -0800
@@ -122,7 +122,12 @@
 ifeq ($(OPENJDK_TARGET_OS), windows)
   # On Windows, the Visual Studio toolchain needs the PATH to be adjusted
   # to include Visual Studio tools (this needs to be in cygwin/msys style).
-  export PATH:=@VS_PATH@
+  ifeq ($(OPENJDK_TARGET_OS_ENV), windows.wsl)
+    export FIXPATH_PATH:=@VS_PATH_WINDOWS@
+    export WSLENV:=$(WSLENV):FIXPATH_PATH:DEBUG_FIXPATH
+  else
+    export PATH:=@VS_PATH@
+  endif
 endif
 
 SYSROOT_CFLAGS := @SYSROOT_CFLAGS@