Skip to content

Commit

Permalink
Run cabal build in clash-dev (#2761)
Browse files Browse the repository at this point in the history
This makes sure everything is in scope for `ghci` to compile everything
in `clash-lib` and `clash-ghc`.
  • Loading branch information
martijnbastiaan authored Jul 21, 2024
1 parent 7074868 commit e3baedc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .ci/build_clash_dev.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#!/bin/bash
set -xeou pipefail

# Make sure all our deps are build, and listed in the .ghc.environment file
cabal --write-ghc-environment-files=always v2-build --only-dependencies clash-lib

# Check that clash-dev works
echo "" > clash-dev.result
echo 'main >> writeFile "clash-dev.result" "success"' | ./clash-dev
Expand Down
2 changes: 2 additions & 0 deletions clash-dev
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ else
OPAQUE="NOINLINE"
fi

cabal build clash-lib clash-ghc --only-dependencies

ghci \
-fobject-code \
-iclash-ghc/src-bin-common/ \
Expand Down

0 comments on commit e3baedc

Please sign in to comment.