Skip to content

Commit

Permalink
Use --with-compiler options while running cabal v2-update
Browse files Browse the repository at this point in the history
  • Loading branch information
adithyaov committed Jun 10, 2024
1 parent ccc55fd commit e15a95f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1374,9 +1374,11 @@ ensure_cabal_config() {
echo "cabal v2-update"
if test -n "$CABAL_PROJECT"
then
retry_cmd $CABAL_BINARY_NAME v2-update --project-file "$CABAL_PROJECT"
retry_cmd $CABAL_BINARY_NAME v2-update --project-file "$CABAL_PROJECT" \
--with-compiler "$COMPILER_EXE_PATH"
else
retry_cmd $CABAL_BINARY_NAME v2-update
retry_cmd $CABAL_BINARY_NAME v2-update \
--with-compiler "$COMPILER_EXE_PATH"
fi
fi
fi
Expand Down

0 comments on commit e15a95f

Please sign in to comment.