summaryrefslogtreecommitdiff
path: root/git-annex.cabal
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2016-02-15 11:47:33 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2016-02-15 11:47:33 -0400
commitcd8e2e4eeb70d22f9a7daa375474d80aa188574b (patch)
tree6b3f01c14a5b64e40c15210d3baf916825a47dcb /git-annex.cabal
parent98a2b312fd0297dcb09f6efdc3bd2e3b05b6dfc0 (diff)
move old ghc compat code into separate module; eliminate WITH_CLIBS
This avoids hsc2hs being run except when building for the old version of ghc. Should speed up builds.
Diffstat (limited to 'git-annex.cabal')
-rw-r--r--git-annex.cabal6
1 files changed, 2 insertions, 4 deletions
diff --git a/git-annex.cabal b/git-annex.cabal
index 8e6efbf59..4a1e28f17 100644
--- a/git-annex.cabal
+++ b/git-annex.cabal
@@ -144,10 +144,8 @@ Executable git-annex
process (>= 1.3.0.0)
else
Build-Depends: unix
- -- Need to list these because they're generated from .hsc files.
- Other-Modules: Utility.Touch
- Include-Dirs: Utility
- CPP-Options: -DWITH_CLIBS
+ if impl(ghc <= 7.6.3)
+ Other-Modules: Utility.Touch.Old
if flag(TestSuite)
Build-Depends: tasty (>= 0.7), tasty-hunit, tasty-quickcheck, tasty-rerun,