Mercurial > hg > truffle
annotate make/windows/build.bat @ 2186:e49cfa28f585
6999988: CMS: Increased fragmentation leading to promotion failure after CR#6631166 got implemented
Summary: Fix calculation of _desired, in free list statistics, which was missing an intended set of parentheses.
Reviewed-by: poonam, jmasa
author | ysr |
---|---|
date | Tue, 01 Feb 2011 10:02:01 -0800 |
parents | 0a8e0d4345b3 |
children | 94ec88ca68e2 |
rev | line source |
---|---|
0 | 1 @echo off |
2 REM | |
2042
0a8e0d4345b3
7010068: Update all 2010 Oracle-changed OpenJDK files to have the proper copyright dates - first pass
trims
parents:
1552
diff
changeset
|
3 REM Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. |
0 | 4 REM DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
5 REM | |
6 REM This code is free software; you can redistribute it and/or modify it | |
7 REM under the terms of the GNU General Public License version 2 only, as | |
8 REM published by the Free Software Foundation. | |
9 REM | |
10 REM This code is distributed in the hope that it will be useful, but WITHOUT | |
11 REM ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
12 REM FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
13 REM version 2 for more details (a copy is included in the LICENSE file that | |
14 REM accompanied this code). | |
15 REM | |
16 REM You should have received a copy of the GNU General Public License version | |
17 REM 2 along with this work; if not, write to the Free Software Foundation, | |
18 REM Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | |
19 REM | |
1552
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1328
diff
changeset
|
20 REM Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1328
diff
changeset
|
21 REM or visit www.oracle.com if you need additional information or have any |
c18cbe5936b8
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
1328
diff
changeset
|
22 REM questions. |
0 | 23 REM |
24 REM | |
25 | |
26 | |
27 REM | |
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 | |
30 REM | |
1328
39e409a664b3
6938185: 3/4 6923488 breaks Windows command shell builds
dcubed
parents:
1322
diff
changeset
|
31 REM Note: Running this batch file from the Windows command shell requires |
39e409a664b3
6938185: 3/4 6923488 breaks Windows command shell builds
dcubed
parents:
1322
diff
changeset
|
32 REM that "grep" be accessible on the PATH. An MKS install does this. |
39e409a664b3
6938185: 3/4 6923488 breaks Windows command shell builds
dcubed
parents:
1322
diff
changeset
|
33 REM |
0 | 34 cl 2>&1 | grep "IA-64" >NUL |
35 if %errorlevel% == 0 goto isia64 | |
36 cl 2>&1 | grep "AMD64" >NUL | |
37 if %errorlevel% == 0 goto amd64 | |
38 set ARCH=x86 | |
39 set BUILDARCH=i486 | |
40 set Platform_arch=x86 | |
41 set Platform_arch_model=x86_32 | |
42 goto end | |
43 :amd64 | |
44 set LP64=1 | |
45 set ARCH=x86 | |
46 set BUILDARCH=amd64 | |
47 set Platform_arch=x86 | |
48 set Platform_arch_model=x86_64 | |
49 goto end | |
50 :isia64 | |
51 set LP64=1 | |
52 set ARCH=ia64 | |
53 set Platform_arch=ia64 | |
54 set Platform_arch_model=ia64 | |
55 :end | |
56 | |
57 if "%4" == "" goto usage | |
58 if not "%7" == "" goto usage | |
59 | |
60 if "%1" == "product" goto test1 | |
61 if "%1" == "debug" goto test1 | |
62 if "%1" == "fastdebug" goto test1 | |
1322
21141e23627a
6923488: 4/4 need minor tweaks to HotSpot build for Cygwin
dcubed
parents:
196
diff
changeset
|
63 if "%1" == "tree" goto test1 |
0 | 64 goto usage |
65 | |
66 :test1 | |
67 if "%2" == "core" goto test2 | |
1322
21141e23627a
6923488: 4/4 need minor tweaks to HotSpot build for Cygwin
dcubed
parents:
196
diff
changeset
|
68 if "%2" == "kernel" goto test2 |
0 | 69 if "%2" == "compiler1" goto test2 |
70 if "%2" == "compiler2" goto test2 | |
71 if "%2" == "tiered" goto test2 | |
72 if "%2" == "adlc" goto build_adlc | |
73 | |
74 goto usage | |
75 | |
76 :test2 | |
1322
21141e23627a
6923488: 4/4 need minor tweaks to HotSpot build for Cygwin
dcubed
parents:
196
diff
changeset
|
77 if "%1" == "tree" goto build_tree |
0 | 78 REM check_j2se_version |
79 REM jvmti.make requires J2SE 1.4.x or newer. | |
80 REM If not found then fail fast. | |
81 %4\bin\javap javax.xml.transform.TransformerFactory >NUL | |
82 if %errorlevel% == 0 goto build | |
83 echo. | |
84 echo J2SE version found at %4\bin\java: | |
85 %4\bin\java -version | |
86 echo. | |
87 echo An XSLT processor (J2SE 1.4.x or newer) is required to | |
88 echo bootstrap this build | |
89 echo. | |
90 | |
91 goto usage | |
92 | |
93 :build | |
91
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
0
diff
changeset
|
94 nmake -f %3/make/windows/build.make Variant=%2 WorkSpace=%3 BootStrapDir=%4 BuildUser="%USERNAME%" HOTSPOT_BUILD_VERSION="%5" %1 |
0 | 95 goto end |
96 | |
97 :build_adlc | |
91
a294fd0c4b38
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
0
diff
changeset
|
98 nmake -f %3/make/windows/build.make Variant=compiler2 WorkSpace=%3 BootStrapDir=%4 BuildUser="%USERNAME%" HOTSPOT_BUILD_VERSION=%5 ADLC_ONLY=1 %1 |
0 | 99 goto end |
100 | |
1322
21141e23627a
6923488: 4/4 need minor tweaks to HotSpot build for Cygwin
dcubed
parents:
196
diff
changeset
|
101 :build_tree |
21141e23627a
6923488: 4/4 need minor tweaks to HotSpot build for Cygwin
dcubed
parents:
196
diff
changeset
|
102 nmake -f %3/make/windows/build.make Variant=%2 WorkSpace=%3 BootStrapDir=%4 BuildUser="%USERNAME%" HOTSPOT_BUILD_VERSION="%5" %1 |
21141e23627a
6923488: 4/4 need minor tweaks to HotSpot build for Cygwin
dcubed
parents:
196
diff
changeset
|
103 goto end |
21141e23627a
6923488: 4/4 need minor tweaks to HotSpot build for Cygwin
dcubed
parents:
196
diff
changeset
|
104 |
0 | 105 :usage |
106 echo Usage: build flavor version workspace bootstrap_dir [build_id] [windbg_home] | |
107 echo. | |
108 echo where: | |
109 echo flavor is "product", "debug" or "fastdebug", | |
110 echo version is "core", "kernel", "compiler1", "compiler2", or "tiered", | |
111 echo workspace is source directory without trailing slash, | |
1322
21141e23627a
6923488: 4/4 need minor tweaks to HotSpot build for Cygwin
dcubed
parents:
196
diff
changeset
|
112 echo bootstrap_dir is a full path to a JDK in which bin/java |
21141e23627a
6923488: 4/4 need minor tweaks to HotSpot build for Cygwin
dcubed
parents:
196
diff
changeset
|
113 echo and bin/javac are present and working, and build_id is an |
0 | 114 echo optional build identifier displayed by java -version |
1328
39e409a664b3
6938185: 3/4 6923488 breaks Windows command shell builds
dcubed
parents:
1322
diff
changeset
|
115 exit /b 1 |
0 | 116 |
117 :end | |
1328
39e409a664b3
6938185: 3/4 6923488 breaks Windows command shell builds
dcubed
parents:
1322
diff
changeset
|
118 exit /b %errorlevel% |