6923488: 4/4 need minor tweaks to HotSpot build for Cygwin
Summary: Clean up get_msc_ver, build.bat and build.make in general and for Cygwin.
Reviewed-by: ohair
@echo offREMREM Copyright 2003-2008 Sun Microsystems, Inc. All Rights Reserved.REM DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.REMREM This code is free software; you can redistribute it and/or modify itREM under the terms of the GNU General Public License version 2 only, asREM published by the Free Software Foundation.REMREM This code is distributed in the hope that it will be useful, but WITHOUTREM ANY WARRANTY; without even the implied warranty of MERCHANTABILITY orREM FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public LicenseREM version 2 for more details (a copy is included in the LICENSE file thatREM accompanied this code).REMREM You should have received a copy of the GNU General Public License versionREM 2 along with this work; if not, write to the Free Software Foundation,REM Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.REMREM Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,REM CA 95054 USA or visit www.sun.com if you need additional information orREM have any questions.REM REMREM FIXME: How do I detect processor on Windows so thatREM AMD-64/IA-64 could be detected? Should I assumeREM MKS/Cygwin here?REM This is common environment settings for all SAREM windows batch scriptsREM set jre\bin and jre\bin\client (or server) in PATHREM WINDBG_HOME must point to the Windows Debugging ToolsREM installation directory.if "%SA_JAVA%" == "" goto no_sa_javagoto sa_java_set:no_sa_javaset SA_JAVA=java:sa_java_setset SA_CLASSPATH=..\build\classes;..\src\share\lib\js.jar;sa.jar;lib\js.jarREM For now, only AMD-64, IA-64 stack walking is not working anywayset SA_LIBPATH=.\src\os\win32\windbg\amd64;.\win32\amd64set OPTIONS=-Dsun.jvm.hotspot.debugger.useWindbgDebuggerset OPTIONS=-Dsun.jvm.hotspot.debugger.windbg.imagePath="%PATH%" %OPTIONS%set OPTIONS=-Dsun.jvm.hotspot.debugger.windbg.sdkHome="%WINDBG_HOME%" %OPTIONS%if "%SA_DISABLE_VERS_CHK%" == "" goto vers_chkset OPTIONS="-Dsun.jvm.hotspot.runtime.VM.disableVersionCheck %OPTIONS%":vers_chkset SA_JAVA_CMD=%SA_JAVA% -showversion -cp %SA_CLASSPATH% -Djava.library.path=.%SA_LIBPATH% %OPTIONS%