@echo offREMREM Copyright (c) 2003, 2008, Oracle and/or its affiliates. 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USAREM or visit www.oracle.com if you need additional information or have anyREM questions.REM REMREM Cross compile IA64 compiler2 VMREM Usage:REM cross_compile flavor workspace bootstrap_dir [build_id]REM %1 %2 %3 %4REMREM Set current directoryfor /F %%i in ('cd') do set CD=%%iecho Setting up Visual C++ Compilation Environmentif "%MSVCDir%" == "" goto setdir1goto setenv1:setdir1SET MSVCDir=C:\Program Files\Microsoft Visual Studio\VC98:setenv1SET OLDINCLUDE=%INCLUDE%SET OLDLIB=%LIB%SET OLDPATH=%PATH%call "%MSVCDir%\Bin\VCVARS32"call %2\make\windows\build %1 adlc %2 %3 %4SET INCLUDE=%OLDINCLUDE%SET LIB=%OLDLIB%SET PATH=%OLDPATH%echo Setting up 64-BIT Compilation Environmentif "%MSSdk%" == "" goto setdir2goto setenv2:setdir2SET MSSdk=C:\Program Files\Microsoft SDK:setenv2call "%MSSdk%\SetEnv.bat" /XP64SET ALT_ADLC_PATH=%CD%\windows_i486_compiler2\generatedcall %2\make\windows\build %1 compiler2 %2 %3 %4SET INCLUDE=%OLDINCLUDE%SET LIB=%OLDLIB%SET PATH=%OLDPATH%SET OLDINCLUDE=SET OLDLIB=SET OLDPATH=