-
Notifications
You must be signed in to change notification settings - Fork 108
/
mvm
executable file
·38 lines (36 loc) · 1.24 KB
/
mvm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env bash
set -e
case "`uname -m`" in # ensure we see x86 as machine type
i*86) ;; # we're good
*) if type i386 2>&1 >/dev/null; then
echo "Re-exec as x86"
exec i386 "$0" "$@"
fi ;;
esac
# assert Spur VM with VM profiler and itimer heartbeat
INSTALLDIR=assert/nsnaccogspur32linux
OPT="-g3 -O1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DDEBUGVM=0"
if [ $# -ge 1 ]; then
case "$1" in
-*) ;;
*) INSTALLDIR="$1"; shift
esac
fi
if ../../../../scripts/checkSCCSversion ; then exit 1; fi
echo -n "clean? "
read a
case $a in
n|no|N|NO) echo "ok but this isn't safe!!";;
*) rm -f config.h; test -f Makefile && make reallyclean
esac
../../../../scripts/copylinuxpluginspecfiles
test -f config.h || ../../../../platforms/unix/config/configure \
--with-vmversion=5.0 \
--with-src=src/spur32.cog.newspeak \
--without-vm-display-fbdev --without-npsqueak \
TARGET_ARCH="-m32" \
CFLAGS="$OPT -DEnforceAccessControl=0 -msse2 -DITIMER_HEARTBEAT=1"
rm -f vm/sqUnixMain.o # nuke version info
rm -rf ../../../../products/$INSTALLDIR
make install-squeak install-plugins prefix=`(cd ../../../../;pwd)`/products/$INSTALLDIR 2>&1 | tee LOG ; test ${PIPESTATUS[0]} -eq 0
../../editnewspeakinstall.sh ../../../../products/$INSTALLDIR -source SqueakV41 "$@"