
18 Jun
2012
18 Jun
'12
11:06 p.m.
On 18/06/2012, at 23:20, Henning Thielemann wrote:
On Mon, 18 Jun 2012, Roman Leshchinskiy wrote:
VECTOR_BOUNDS_CHECKS is defined in vector.cabal as follows:
if flag(BoundsChecks) cpp-options: -DVECTOR_BOUNDS_CHECKS
Doesn't Cabal provide access to the flags that a package has been compiled with?
Do you mean this way: http://hackage.haskell.org/trac/hackage/ticket/836 ?
Indeed. I'm surprised Cabal doesn't provide this. But now I'm confused. How do I export a CPP symbol that depends on a flag to other packages? Do I have to generate a header file during configuration for that? Roman