Carp/scripts/carp.sh
Veit Heller fe07a3f062
Refactor error reporting and add CARP_DIR check (#1033)
* compiler: refactor error reporting and add CARP_DIR check

Co-authored-by: Tim Dévé <TimDeve@users.noreply.github.com>

* set CARP_DIR in tests

Co-authored-by: Tim Dévé <TimDeve@users.noreply.github.com>
2020-11-30 15:58:25 +01:00

14 lines
220 B
Bash
Executable File

#!/usr/bin/env sh
if [ -z "$CARP" ]
then
if [ -z "$NIX_CC" ]
then
CARP="stack exec carp"
else
CARP="cabal -v0 run carp"
fi
CARP="$CARP $BUILD_OPTS --"
fi
export CARP_DIR=`pwd`
$CARP $CARP_OPTS "$@"