Skip to content

Commit

Permalink
Use confgurations to help build Cabal for ghc-6.2.x
Browse files Browse the repository at this point in the history
Replacing a long-standing comment telling people how to do it manually.
  • Loading branch information
dcoutts committed Sep 12, 2007
1 parent 256a57e commit fc2490f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Cabal.cabal
Expand Up @@ -26,11 +26,13 @@ Flag small_base

Library
if flag(small_base)
-- For ghc 6.2 you need to add 'unix' to Build-Depends:
Build-Depends: base, filepath, pretty, directory, old-time, process, containers
else
Build-Depends: base, filepath

if impl(ghc < 6.3)
Build-Depends: unix

--FIXME: we need a CPP-Options field
GHC-Options: -DCABAL_VERSION=1,2,0 -Wall
CC-Options: "-DCABAL_VERSION=1,2,0"
Expand Down

0 comments on commit fc2490f

Please sign in to comment.