dimitriv / Ziria

A domain-specific-language and compiler for low-level bitstream processing.
92 stars 18 forks source link

Switch to using cabal to build the code #65

Closed edsko closed 9 years ago

edsko commented 9 years ago

We can still have a Makefile but it should call cabal; and the test scripts should be modified to take into account the locations where cabal puts executables.

(this will also make it possible to cabal repl)

dimitriv commented 9 years ago

Can this one be closed, as part of 5450270800a791462d0e6dd5e8c, @pchickey @edsko?

pchickey commented 9 years ago

I think so. @edsko or others can open new bugs if there are any issues I need to fix.

edsko commented 9 years ago

Do the test scripts (tests/parser, test/backend, etc.) now find the wplc in the dist/build/wplc/wplc location?

pchickey commented 9 years ago

I use cabal install, so the executables are created at .cabal-sandbox/bin/. The executables are copied to the old positions (./wplc, ./tools/BlinkDiff). clean removes the copies.

I'm happy to change the scripts to look in .cabal-sandbox/bin if that is preferred.