-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from haskell-works/upgrade-hw-rankselect-to-0.13
Upgrade hw-rankselect to 0.13
- Loading branch information
Showing
3 changed files
with
46 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,59 @@ | ||
#!/usr/bin/env bash | ||
|
||
STACK_FLAGS=" | ||
--flag bits-extra:bmi2 | ||
--flag hw-rankselect-base:bmi2 | ||
--flag hw-rankselect:bmi2 | ||
--flag hw-simd:bmi2 | ||
--flag hw-simd:avx2 | ||
" | ||
|
||
case $1 in | ||
CABAL_FLAGS="" | ||
|
||
cmd="$1" | ||
|
||
shift | ||
|
||
case "$cmd" in | ||
install) | ||
cabal new-install \ | ||
--symlink-bindir=$HOME/.local/bin \ | ||
-j8 --overwrite-policy=always --disable-documentation \ | ||
exe:hw-json | ||
$CABAL_FLAGS "$@" | ||
;; | ||
|
||
build) | ||
stack build \ | ||
--test --no-run-tests --bench --no-run-benchmarks \ | ||
$STACK_FLAGS | ||
cabal new-build all -j8 \ | ||
--disable-tests --disable-benchmarks \ | ||
$CABAL_FLAGS "$@" | ||
;; | ||
|
||
exec) | ||
cabal new-exec "$(echo *.cabal | cut -d . -f 1)" "$@" | ||
;; | ||
|
||
test) | ||
stack test \ | ||
$STACK_FLAGS | ||
cabal new-test -j8 --enable-tests --disable-documentation \ | ||
$CABAL_FLAGS "$@" | ||
;; | ||
|
||
bench) | ||
stack bench \ | ||
$STACK_FLAGS | ||
cabal new-bench -j8 \ | ||
$CABAL_FLAGS "$@" | ||
;; | ||
|
||
repl) | ||
stack repl \ | ||
$STACK_FLAGS | ||
cabal new-repl \ | ||
$CABAL_FLAGS "$@" | ||
;; | ||
|
||
clean) | ||
cabal new-clean | ||
;; | ||
|
||
*) | ||
echo "Unrecognised command: $cmd" | ||
exit 1 | ||
;; | ||
esac | ||
|
||
# haskell-ide-engine work-around | ||
for x in $(find dist-newstyle -name setup-config | grep '/opt/setup-config$' | sed 's|/opt/setup-config$||g'); do | ||
( cd $x | ||
ln -fs opt/setup-config setup-config | ||
) | ||
done | ||
|
This file was deleted.
Oops, something went wrong.