lib/Tools/ghc_setup
author wenzelm
Wed, 20 Mar 2019 21:57:02 +0100
changeset 70112 b5286c564861
parent 69512 db001bc11855
permissions -rwxr-xr-x
more robust reference to ghc exe (with multi-platform support);

#!/usr/bin/env bash
#
# Author: Makarius
#
# DESCRIPTION: setup Glasgow Haskell Compiler via Stack

set -e

isabelle_stack setup
isabelle_stack ghc -- --version
echo -n "$(standard_path "$(isabelle_stack path --compiler-exe)")" > "$ISABELLE_STACK_ROOT/ISABELLE_GHC_EXE-$ISABELLE_PLATFORM_FAMILY"