mirror of
https://github.com/carp-lang/Carp.git
synced 2024-09-11 05:25:28 +03:00
* 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>
14 lines
220 B
Bash
Executable File
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 "$@"
|