Files
mercury/scripts/mercury_compile.sh-java
Julien Fischer 96362bfc91 Make it possible to bootstrap using the Java version of the compiler.
scripts/mercury_compile.sh-java:
    Bump up the stack size to 32M since the default is too low to build the
    Mercury compiler.

configure.ac:
     Workaround a problem that causes the configure check for an installed
     Mercury compiler to fail if the installed Mercury compiler is built in
     a non-C grade, specifically the non-C backends do not provide an equivalent
     of MR_RTTI_VERSION.
2015-09-04 20:54:35 +10:00

17 lines
493 B
Bash
Executable File

#!/bin/sh
# This script invokes the _installed_ version of the Mercury compiler when it
# is built in the Java grade.
DIR=${0%/*}
DIR=$( cd "${DIR}" && pwd -P )
case $WINDIR in
'') SEP=':' ;;
*) SEP=';' ;;
esac
JARDIR="$DIR/../lib/mercury/lib/java"
CLASSPATH="$DIR/top_level.jar"${SEP}$CLASSPATH${SEP}$JARDIR/mer_rt.jar${SEP}$JARDIR/mer_std.jar${SEP}$JARDIR/mer_browser.jar${SEP}$JARDIR/mer_mdbcomp.jar
export CLASSPATH
JAVA=${JAVA:-java}
exec "$JAVA" -Xss32M jmercury.top_level "$@"