Commit 57d6c698 authored by Andrey Mokhov's avatar Andrey Mokhov
Browse files

Add path to generated includes for compiler package

Fix #288.
parent e5b4b0cb
module Settings.Builders.Common (
includesArgs, cIncludeArgs, ldArgs, cArgs, cWarnings,
includes, includesArgs, cIncludeArgs, ldArgs, cArgs, cWarnings,
argSetting, argSettingList, argStagedBuilderPath, argStagedSettingList
) where
......
......@@ -7,6 +7,7 @@ import Oracles.Config.Flag
import Oracles.Config.Setting
import Predicate
import Settings
import Settings.Builders.Common
compilerPackageArgs :: Args
compilerPackageArgs = package compiler ? do
......@@ -15,7 +16,10 @@ compilerPackageArgs = package compiler ? do
path <- getBuildPath
mconcat [ builder Alex ? arg "--latin1"
, builder Ghc ? arg ("-I" ++ path)
, builder Ghc ? mconcat
[ arg ("-I" ++ path)
, includesArgs
, append [ "-optP-I" ++ dir | dir <- includes ] ]
, builder GhcCabal ? mconcat
[ arg $ "--ghc-option=-DSTAGE=" ++ show (fromEnum stage + 1)
......
Markdown is supported
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