From 7538f04668475b1782239832fb01b38783b1f9e3 Mon Sep 17 00:00:00 2001 From: Christiaan Baaij Date: Wed, 22 Jul 2009 09:37:59 +0200 Subject: [PATCH] Update .cabal file so that a default build is expected to be in the GHC tree --- "c\316\273ash/clash.cabal" | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) 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 -- 2.30.2