0N/A@echo off
0N/AREM
1472N/AREM Copyright (c) 2003, 2008, Oracle and/or its affiliates. All rights reserved.
0N/AREM DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/AREM
0N/AREM This code is free software; you can redistribute it and/or modify it
0N/AREM under the terms of the GNU General Public License version 2 only, as
0N/AREM published by the Free Software Foundation.
0N/AREM
0N/AREM This code is distributed in the hope that it will be useful, but WITHOUT
0N/AREM ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/AREM FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/AREM version 2 for more details (a copy is included in the LICENSE file that
0N/AREM accompanied this code).
0N/AREM
0N/AREM You should have received a copy of the GNU General Public License version
0N/AREM 2 along with this work; if not, write to the Free Software Foundation,
0N/AREM Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/AREM
1472N/AREM Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
1472N/AREM or visit www.oracle.com if you need additional information or have any
1472N/AREM questions.
0N/AREM
0N/AREM
0N/A
0N/AREM Cross compile IA64 compiler2 VM
0N/AREM Usage:
0N/AREM cross_compile flavor workspace bootstrap_dir [build_id]
0N/AREM %1 %2 %3 %4
0N/AREM
0N/AREM Set current directory
0N/Afor /F %%i in ('cd') do set CD=%%i
0N/Aecho Setting up Visual C++ Compilation Environment
0N/Aif "%MSVCDir%" == "" goto setdir1
0N/Agoto setenv1
0N/A:setdir1
0N/ASET MSVCDir=C:\Program Files\Microsoft Visual Studio\VC98
0N/A:setenv1
0N/ASET OLDINCLUDE=%INCLUDE%
0N/ASET OLDLIB=%LIB%
0N/ASET OLDPATH=%PATH%
0N/Acall "%MSVCDir%\Bin\VCVARS32"
91N/Acall %2\make\windows\build %1 adlc %2 %3 %4
0N/ASET INCLUDE=%OLDINCLUDE%
0N/ASET LIB=%OLDLIB%
0N/ASET PATH=%OLDPATH%
0N/Aecho Setting up 64-BIT Compilation Environment
0N/Aif "%MSSdk%" == "" goto setdir2
0N/Agoto setenv2
0N/A:setdir2
0N/ASET MSSdk=C:\Program Files\Microsoft SDK
0N/A:setenv2
0N/Acall "%MSSdk%\SetEnv.bat" /XP64
0N/ASET ALT_ADLC_PATH=%CD%\windows_i486_compiler2\generated
91N/Acall %2\make\windows\build %1 compiler2 %2 %3 %4
0N/ASET INCLUDE=%OLDINCLUDE%
0N/ASET LIB=%OLDLIB%
0N/ASET PATH=%OLDPATH%
0N/ASET OLDINCLUDE=
0N/ASET OLDLIB=
0N/ASET OLDPATH=