Building JDK with VC++ Express

Weijun Wang weijun.wang at oracle.com
Fri Oct 22 19:20:24 PDT 2010


VC++ Express 2010 (32 bit Windows) provides an environment variable 
WindowsSdkDir to point to SDK tools like rc.exe. With the following 
patch, there's no need to setup the ALT_MSDEVTOOLS_PATH.

diff --git a/make/common/shared/Defs-windows.gmk 
b/make/common/shared/Defs-windows.gmk
--- a/make/common/shared/Defs-windows.gmk
+++ b/make/common/shared/Defs-windows.gmk
@@ -462,6 +462,11 @@
      endif
    else
      _ms_tools_bin :=$(_compiler_bin)
+    ifdef WindowsSdkDir
+      xWindowsSdkDir  :="$(subst \,/,$(WindowsSdkDir))"
+      _ms_tools :=$(call FullPath,$(xWindowsSdkDir))
+      _ms_tools_bin := $(_ms_tools)/bin
+    endif
    endif
    MSDEVTOOLS_PATH :=$(call PrefixPath,$(_ms_tools_bin))
  endif

Thanks
Max



More information about the compiler-dev mailing list