comparison make/windows/build_vm_def.sh @ 12099:c062a6e1fa33

8023406: make/windows/build_vm_def.sh takes too long even when BUILD_WIN_SA != 1 Summary: Avoid dumping C++ vtable when BUILD_WIN_SA != 1 Reviewed-by: dcubed, sla, tbell
author iklam
date Thu, 22 Aug 2013 10:20:50 -0700
parents b9a9ed0f8eeb
children cefad50507d8 de6a9e811145
comparison
equal deleted inserted replaced
12095:c6ec0a97b30a 12099:c062a6e1fa33
40 else 40 else
41 SH=`which sh` 41 SH=`which sh`
42 MKS_HOME=`dirname "$SH"` 42 MKS_HOME=`dirname "$SH"`
43 fi 43 fi
44 44
45 echo "EXPORTS" > vm1.def
46
47 AWK="$MKS_HOME/awk.exe" 45 AWK="$MKS_HOME/awk.exe"
48 if [ ! -e $AWK ]; then 46 if [ ! -e $AWK ]; then
49 AWK="$MKS_HOME/gawk.exe" 47 AWK="$MKS_HOME/gawk.exe"
50 fi 48 fi
51 GREP="$MKS_HOME/grep.exe" 49 GREP="$MKS_HOME/grep.exe"
52 SORT="$MKS_HOME/sort.exe" 50 SORT="$MKS_HOME/sort.exe"
53 UNIQ="$MKS_HOME/uniq.exe" 51 UNIQ="$MKS_HOME/uniq.exe"
54 CAT="$MKS_HOME/cat.exe" 52 CAT="$MKS_HOME/cat.exe"
55 RM="$MKS_HOME/rm.exe" 53 RM="$MKS_HOME/rm.exe"
56 DUMPBIN="link.exe /dump" 54 DUMPBIN="link.exe /dump"
55
56 if [ "$1" = "-nosa" ]; then
57 echo EXPORTS > vm.def
58 echo ""
59 echo "***"
60 echo "*** Not building SA: BUILD_WIN_SA != 1"
61 echo "*** C++ Vtables NOT included in vm.def"
62 echo "*** This jvm.dll will NOT work properly with SA."
63 echo "***"
64 echo "*** When in doubt, set BUILD_WIN_SA=1, clean and rebuild."
65 echo "***"
66 echo ""
67 exit
68 fi
69
70 echo "EXPORTS" > vm1.def
57 71
58 # When called from IDE the first param should contain the link version, otherwise may be nill 72 # When called from IDE the first param should contain the link version, otherwise may be nill
59 if [ "x$1" != "x" ]; then 73 if [ "x$1" != "x" ]; then
60 LD_VER="$1" 74 LD_VER="$1"
61 fi 75 fi