• Simon Marlow's avatar
    Don't use the cc-options from packages when compiling .hc files · 39271273
    Simon Marlow authored
    Now that we don't include any header files in .hc apart from our own,
    the cc-options from packages are at best superfluous, so don't pass
    We still pass them to .c compilations, although I've just made changes
    to Cabal so that cc-options from a .cabal file are not copied into the
    InstalledPackageInfo.  Most uses of cc-options in Cabal are clearly
    intended to be local to the package, but they were being propagated
    everywhere, almost certainly unintentionally.
    The way is left open for Cabal to allow packages to specify cc-options
    that get propagated in the future, if we find a use case for this.
DriverPipeline.hs 61.4 KB