lib/Tools/scalac
author wenzelm
Tue, 30 Nov 2021 11:31:07 +0100
changeset 74870 d54b3c96ee50
parent 74038 b4f57bfe82e7
child 76343 6a6f650cc5a2
permissions -rwxr-xr-x
more robust physical timeout (despite 1bea05713dde), especially relevant for quickcheck where large unary numerals may cause excessive heap allocations and resulting GC is better included in the timing;

#!/usr/bin/env bash
#
# Author: Makarius
#
# DESCRIPTION: invoke Scala compiler within the Isabelle environment

isabelle scala_build || exit $?

classpath "$ISABELLE_SETUP_CLASSPATH"; unset ISABELLE_SETUP_CLASSPATH
classpath "$CLASSPATH"; unset CLASSPATH

isabelle_scala scalac -Dfile.encoding=UTF-8 \
  -classpath "$(platform_path "$ISABELLE_CLASSPATH")" "$@"