Skip to content
Snippets Groups Projects
Commit a6ada849 authored by Dale Wijnand's avatar Dale Wijnand
Browse files

validate.sh: Allow using short-version ghc binaries, like ghc-8.6

Previously this would work until CABAL_TESTSUITE_BDIR was needed, at
which point it would fail because it looked for things under
.../ghc-8.6/... while cabal v2-build actually put them in
.../ghc-8.6.5/...

Hard-coding "ghc" is unfortunate, but I didn't know if there was an easy
way to avoid it.  I also didn't want to over-complicate it, until it was
necessary.

validate.sh isn't tested in CI so...
[ci skip]
parent 0046cf2d
No related branches found
No related tags found
No related merge requests found
......@@ -191,7 +191,7 @@ else
PROJECTFILE=cabal.project.validate
fi
BASEHC=$(basename $HC)
BASEHC=ghc-$($HC --numeric-version)
BUILDDIR=dist-newstyle-validate-$BASEHC
CABAL_TESTSUITE_BDIR="$(pwd)/$BUILDDIR/build/$ARCH/$BASEHC/cabal-testsuite-${CABAL_VERSION}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment