mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-16 01:43:35 +00:00
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.
17 lines
493 B
Bash
Executable File
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 "$@"
|