lib/Tools/ghc_setup
author wenzelm
Wed Mar 20 21:57:02 2019 +0100 (2 months ago)
changeset 69930 b5286c564861
parent 69500 db001bc11855
permissions -rwxr-xr-x
more robust reference to ghc exe (with multi-platform support);
wenzelm@69151
     1
#!/usr/bin/env bash
wenzelm@69151
     2
#
wenzelm@69151
     3
# Author: Makarius
wenzelm@69151
     4
#
wenzelm@69500
     5
# DESCRIPTION: setup Glasgow Haskell Compiler via Stack
wenzelm@69151
     6
wenzelm@69242
     7
set -e
wenzelm@69242
     8
wenzelm@69267
     9
isabelle_stack setup
wenzelm@69267
    10
isabelle_stack ghc -- --version
wenzelm@69930
    11
echo -n "$(standard_path "$(isabelle_stack path --compiler-exe)")" > "$ISABELLE_STACK_ROOT/ISABELLE_GHC_EXE-$ISABELLE_PLATFORM_FAMILY"