Commit 54cecf08 authored by Simon Marlow's avatar Simon Marlow
Browse files

Haddock 2: #include <cabal_macros.h>

parent 5b3cb7e7
......@@ -76,7 +76,8 @@ import Distribution.Simple.InstallDirs (InstallDirs(..), PathTemplate,
initialPathTemplateEnv)
import Distribution.Simple.LocalBuildInfo ( LocalBuildInfo(..) )
import Distribution.Simple.BuildPaths ( haddockPref, haddockName,
hscolourPref, autogenModulesDir )
hscolourPref, autogenModulesDir,
cppHeaderName )
import qualified Distribution.Simple.PackageIndex as PackageIndex
( lookupPackageId )
import qualified Distribution.InstalledPackageInfo as InstalledPackageInfo
......@@ -351,6 +352,7 @@ ghcSimpleOptions lbi bi mockDir
++ ["-i" ++ mockDir]
++ ["-I" ++ dir | dir <- PD.includeDirs bi]
++ ["-optP" ++ opt | opt <- cppOptions bi]
++ [ "-optP-include", "-optP"++ (autogenModulesDir lbi </> cppHeaderName) ]
++ ["-odir", mockDir]
++ ["-hidir", mockDir]
++ extensionsToFlags c (extensions bi)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment