comparison make/windows/build.bat @ 1328:39e409a664b3

6938185: 3/4 6923488 breaks Windows command shell builds Summary: Fix build.bat so invoking command shell doesn't exit on error. Fix dirname assumptions. Document some MKS environment dependencies. Reviewed-by: coleenp
author dcubed
date Thu, 25 Mar 2010 16:27:12 -0700
parents 21141e23627a
children c18cbe5936b8
comparison
equal deleted inserted replaced
1322:21141e23627a 1328:39e409a664b3
25 25
26 26
27 REM 27 REM
28 REM Since we don't have uname and we could be cross-compiling, 28 REM Since we don't have uname and we could be cross-compiling,
29 REM Use the compiler to determine which ARCH we are building 29 REM Use the compiler to determine which ARCH we are building
30 REM
31 REM Note: Running this batch file from the Windows command shell requires
32 REM that "grep" be accessible on the PATH. An MKS install does this.
30 REM 33 REM
31 cl 2>&1 | grep "IA-64" >NUL 34 cl 2>&1 | grep "IA-64" >NUL
32 if %errorlevel% == 0 goto isia64 35 if %errorlevel% == 0 goto isia64
33 cl 2>&1 | grep "AMD64" >NUL 36 cl 2>&1 | grep "AMD64" >NUL
34 if %errorlevel% == 0 goto amd64 37 if %errorlevel% == 0 goto amd64
107 echo version is "core", "kernel", "compiler1", "compiler2", or "tiered", 110 echo version is "core", "kernel", "compiler1", "compiler2", or "tiered",
108 echo workspace is source directory without trailing slash, 111 echo workspace is source directory without trailing slash,
109 echo bootstrap_dir is a full path to a JDK in which bin/java 112 echo bootstrap_dir is a full path to a JDK in which bin/java
110 echo and bin/javac are present and working, and build_id is an 113 echo and bin/javac are present and working, and build_id is an
111 echo optional build identifier displayed by java -version 114 echo optional build identifier displayed by java -version
112 exit 1 115 exit /b 1
113 116
114 :end 117 :end
115 exit %errorlevel% 118 exit /b %errorlevel%