patch applied (cabal): Add auto-generated CPP macros for package version testing

Simon Marlow simonmarhaskell at gmail.com
Tue Aug 12 11:08:50 EDT 2008


Mon Aug 11 10:30:16 PDT 2008  Simon Marlow <marlowsd at gmail.com>
  * Add auto-generated CPP macros for package version testing
  
  Now when using CPP you get 
  
     MIN_VERSION_<package>(A,B,C)
  
  for each <package> in build-depends, which is true if the version of
  <package> in use is >= A.B.C, using the normal ordering on version
  numbers.
  
  This is done by auto-generating a header file
  dist/build/autogen/cabal_macros.h, and passing a -include flag when
  running CPP.

    M ./Distribution/Simple/Build.hs -2 +43
    M ./Distribution/Simple/BuildPaths.hs +3
    M ./Distribution/Simple/GHC.hs +2
    M ./Distribution/Simple/PreProcess.hs -3 +9
    M ./doc/Cabal.xml +41

View patch online:
http://darcs.haskell.org/cabal/_darcs/patches/20080811173016-12142-850c66ab1b3fc6aa05add7a0433dccdd1b3355c1.gz



More information about the cabal-devel mailing list