summaryrefslogtreecommitdiff
path: root/hadrian/hie-bios
diff options
context:
space:
mode:
Diffstat (limited to 'hadrian/hie-bios')
-rwxr-xr-xhadrian/hie-bios4
1 files changed, 2 insertions, 2 deletions
diff --git a/hadrian/hie-bios b/hadrian/hie-bios
index 4def2e8823..dcf36963b5 100755
--- a/hadrian/hie-bios
+++ b/hadrian/hie-bios
@@ -1,7 +1,7 @@
#! /usr/bin/env bash
+HADRIAN_DIR=`dirname "$0"`
# When run, this program will output a list of arguments which are necessary to
# load the GHC library component into GHCi. The program is used by `ghcide` in
# order to automatically set up the correct GHC API session for a project.
-TERM=dumb CABFLAGS=-v0 $PWD/hadrian/build-cabal tool:$1 -q --build-root=.hie-bios --flavour=ghc-in-ghci > $HIE_BIOS_OUTPUT
-
+TERM=dumb CABFLAGS=-v0 $HADRIAN_DIR/build-cabal tool:$1 -q -j --build-root=.hie-bios --flavour=ghc-in-ghci > $HIE_BIOS_OUTPUT