From: Christiaan Baaij Date: Wed, 22 Jul 2009 07:37:59 +0000 (+0200) Subject: Update .cabal file so that a default build is expected to be in the GHC tree X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=7538f04668475b1782239832fb01b38783b1f9e3;p=matthijs%2Fmaster-project%2Fc%CE%BBash.git Update .cabal file so that a default build is expected to be in the GHC tree --- diff --git "a/c\316\273ash/clash.cabal" "b/c\316\273ash/clash.cabal" index 7ea2ed0..6daa843 100644 --- "a/c\316\273ash/clash.cabal" +++ "b/c\316\273ash/clash.cabal" @@ -16,11 +16,22 @@ stability: alpha maintainer: christiaan.baaij@gmail.com & matthijs@stdin.nl Cabal-Version: >= 1.2 +flag out-ghc-tree + description: Are we outside a GHC tree? + default: False + manual: True + Library - build-depends: ghc >= 6.11, pretty, vhdl, haskell98, ghc-paths, syb, - data-accessor, containers, base >= 4, transformers, - filepath, template-haskell, data-accessor-template, - prettyclass + if flag(out-ghc-tree) + build-depends: ghc-paths + else + cpp-options: -DIN_GHC_TREE + + build-depends: ghc >= 6.11, pretty, vhdl, haskell98, syb, data-accessor, + containers, base >= 4, transformers, filepath, + template-haskell, data-accessor-template, prettyclass + + extensions: CPP exposed-modules: CLasH.Translator, CLasH.Translator.Annotations