Commit a33ab012 authored by Andrey Mokhov's avatar Andrey Mokhov
Browse files

Force integerGmp package to be configured before reading config.mk file, see #103.

parent ae6f58da
......@@ -6,6 +6,7 @@ import GHC
import Oracles.Config.Setting
import Rules.Actions
import Settings.User
import Settings.TargetDirectory
integerGmpBase :: FilePath
integerGmpBase = "libraries/integer-gmp/gmp"
......@@ -104,6 +105,7 @@ integerGmpRules = do
-- check whether we need to build in tree gmp
-- this is indicated by line "HaveFrameworkGMP = YES" in `config.mk`
need [pkgDataFile Stage1 integerGmp]
configMk <- liftIO . readFile $ integerGmpBase -/- "config.mk"
if "HaveFrameworkGMP = YES" `isInfixOf` configMk
then do
......
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