Major refactoring of path settings
authorAndrey Mokhov <andrey.mokhov@gmail.com>
Wed, 16 Aug 2017 02:45:51 +0000 (03:45 +0100)
committerAndrey Mokhov <andrey.mokhov@gmail.com>
Wed, 16 Aug 2017 02:45:51 +0000 (03:45 +0100)
commit9b70568615e2763ff782279be28286373b59d8ff
treee680b5f4bba04013b2df4d97096976f2182899e6
parentd2ca01bbdf7354c0e88af711696ac333040d2374
Major refactoring of path settings

* Move buildRoot into the Action monad, so it can be configured from command line in future

* Move settings from Setting.Path to Base and Context

* Simplify build rule matching and prepare to factoring out common build rules into the library, #347
44 files changed:
hadrian.cabal
src/Base.hs
src/Context.hs
src/Expression.hs
src/GHC.hs
src/Hadrian/Expression.hs
src/Hadrian/Utilities.hs
src/Main.hs
src/Oracles/ModuleFiles.hs
src/Rules.hs
src/Rules/Cabal.hs
src/Rules/Clean.hs
src/Rules/Compile.hs
src/Rules/Data.hs
src/Rules/Dependencies.hs
src/Rules/Documentation.hs
src/Rules/Generate.hs
src/Rules/Gmp.hs
src/Rules/Install.hs
src/Rules/Libffi.hs
src/Rules/Library.hs
src/Rules/Program.hs
src/Rules/Register.hs
src/Rules/Selftest.hs
src/Rules/Test.hs
src/Rules/Wrappers.hs
src/Settings.hs
src/Settings/Builders/Common.hs
src/Settings/Builders/Configure.hs
src/Settings/Builders/DeriveConstants.hs
src/Settings/Builders/Ghc.hs
src/Settings/Builders/GhcCabal.hs
src/Settings/Builders/GhcPkg.hs
src/Settings/Builders/Haddock.hs
src/Settings/Builders/HsCpp.hs
src/Settings/Builders/Hsc2Hs.hs
src/Settings/Builders/Make.hs
src/Settings/Install.hs [deleted file]
src/Settings/Packages/Ghc.hs
src/Settings/Packages/IntegerGmp.hs
src/Settings/Packages/Rts.hs
src/Settings/Path.hs [deleted file]
src/UserSettings.hs
src/Utilities.hs