1. 05 Sep, 2018 1 commit
    • Alp Mestanogullari's avatar
      Work around the "can't use Natural in base" problem on a per-flavour basis (#676) · 1bbc4b3b
      Alp Mestanogullari authored and Andrey Mokhov's avatar Andrey Mokhov committed
      * Work around the "can't use natural in base" problem on a per-flavour basis
      
      The only flavours that need the workaround are the ones that build
      GHC/{Natural, Num}.hs with -O0, namely 'quick', 'quickest' and 'prof'.
      This patches defines the necessary arguments in one place and uses them
      in all the aforementionned flavour definitions.
      
      This will allow us to have both quick/quickest/prof builds that come through
      as well as an efficient compiler when we want it (with e.g perf), which wasn't
      the case before my series of patches for this problem.
      
      * address @snowleopard's feedback
      1bbc4b3b
  2. 04 Sep, 2018 2 commits
  3. 03 Sep, 2018 1 commit
  4. 02 Sep, 2018 1 commit
  5. 01 Sep, 2018 1 commit
    • Andrey Mokhov's avatar
      Fix build scripts (#668) · 12e6635a
      Andrey Mokhov authored
      * Delete scripts relying on global package database
      
      * Simplify Cabal build script
      
      * Simplify the default build script
      
      * Fix path
      
      * Invoke the build script from GHC root
      
      * Switch to newer Cabal
      
      * Don't disable Cabal output
      
      * Add build.cabal.bat
      12e6635a
  6. 29 Aug, 2018 3 commits
    • Andrey Mokhov's avatar
      Fix documentation rules (#665) · 90d07d7b
      Andrey Mokhov authored
      * Make sure we need haddockHtmlLib before creating anything in the directory
      
      * Fix Haddock builder provenance
      
      * Do not clean up the HTML docs directory
      
      * Fix the target directory
      
      * Add more missing dependencies on haddockHtmlLib
      
      * Replace docPackage with docContext
      
      * Minor revision
      90d07d7b
    • Andrey Mokhov's avatar
      Tweak the build root section · e5f13b3a
      Andrey Mokhov authored
      e5f13b3a
    • Andrey Mokhov's avatar
      Simplify Package data type (#663) · 798a716b
      Andrey Mokhov authored
      I noticed that all packages we build have Cabal files now, which means we no longer need to distinguish between C and Haskell packages. This leads to a lot of simplifications and removal of unsafe functions.
      798a716b
  7. 27 Aug, 2018 5 commits
  8. 26 Aug, 2018 2 commits
  9. 24 Aug, 2018 1 commit
    • Andrey Mokhov's avatar
      Fix package dependencies (#657) · a804d57a
      Andrey Mokhov authored
      This fixes #654.
      
      There are only two important changes.
      
      1) The first one fixes missing dependencies:
      
      ```diff
      -pkgDependencies = fmap (fmap PD.dependencies) . readPackageDataFile
      +pkgDependencies = fmap (fmap (map pkgName . packageDependencies)) . readCabalFile
      ```
      
      Here `PD.dependencies` returned versioned package names, e.g. `ghc-8.7`, which then failed to match with non-versioned package names such as `ghc` in `contextDependencies`. Switching from `PD.dependencies` to `packageDependencies` fixes this.
      
      2) I clearly remember that we didn't have this bug before, so I added some tests for our package dependency infrastructure to prevent such regressions in future:
      
      ```haskell
      testDependencies :: Action ()
      testDependencies = do
          putBuild "==== pkgDependencies"
          depLists <- mapM (pkgDependencies . vanillaContext Stage1) ghcPackages
          test $ and [ deps == sort deps | Just deps <- depLists ]
          putBuild "==== Dependencies of the 'ghc-bin' binary"
          ghcDeps <- pkgDependencies (vanillaContext Stage1 ghc)
          test $ isJust ghcDeps
          test $ pkgName compiler `elem` fromJust ghcDeps
          stage0Deps <- contextDependencies (vanillaContext Stage0 ghc)
          stage1Deps <- contextDependencies (vanillaContext Stage1 ghc)
          stage2Deps <- contextDependencies (vanillaContext Stage2 ghc)
          test $ vanillaContext Stage0 compiler `notElem` stage1Deps
          test $ vanillaContext Stage1 compiler `elem`    stage1Deps
          test $ vanillaContext Stage2 compiler `notElem` stage1Deps
          test $ stage1Deps /= stage0Deps
          test $ stage1Deps == stage2Deps
      ```
      
      Everything else are cosmetic changes, fixing minor issues in comments, and adding TODOs. To figure out the failure in #654 I had to read some code I didn't write and my hands were automatically fixing some style inconsistencies with the rest of the Hadrian code base. (I'd like to emphasise that I make no judgement about which style is better, it's merely an attempt to make the code base look more homogeneous, which I think is useful.)
      a804d57a
  10. 22 Aug, 2018 1 commit
  11. 05 Aug, 2018 1 commit
  12. 31 Jul, 2018 1 commit
  13. 20 Jul, 2018 1 commit
  14. 19 Jul, 2018 1 commit
  15. 27 Jun, 2018 2 commits
  16. 22 Jun, 2018 1 commit
  17. 20 Jun, 2018 2 commits
    • Chitrak Raj Gupta's avatar
      Add includes to bindist (#632) · 36c9781b
      Chitrak Raj Gupta authored and Andrey Mokhov's avatar Andrey Mokhov committed
      * adding include directories
      
      * Adding includes
      
      * Shipping ghci
      36c9781b
    • Chitrak Raj Gupta's avatar
      Remove more validation errors (#628) · d4b9c1fb
      Chitrak Raj Gupta authored and Andrey Mokhov's avatar Andrey Mokhov committed
      * Improved GhcCabal library arguments
      
      * setting enviornment for extra programs
      
      * Copied necessary programs
      
      * Added support to generate ghcconfig
        We will need it for properly configuring python command
      
      Some revisions
      
      * Using ghcconfig file for test parameters
      
      * minor changes
      
      * minor revision
      
      * Update Ghc.hs
      d4b9c1fb
  18. 18 Jun, 2018 3 commits
  19. 15 Jun, 2018 3 commits
  20. 14 Jun, 2018 2 commits
    • Chitrak Raj Gupta's avatar
      Add test compiler option to test (#621) · 0b35e12f
      Chitrak Raj Gupta authored and Andrey Mokhov's avatar Andrey Mokhov committed
      * Rule for testsuite dependencies
      
      * Added RunTest config options
      
      * added support to set test speed with runtest
      
      * Added support for more testing features
      
      * Rectified Merge Errors
      
      * using all available threads
      
      * Minor Revision
      
      * Removed TestThread argument
      
      * Update Utilities.hs
      
      * Added support to choose test compiler
      
      * Minor Revision
      
      * Added comments
      
      * Update RunTest.hs
      
      * Update CommandLine.hs
      
      * Update RunTest.hs
      0b35e12f
    • Andrey Mokhov's avatar
      Minor revision (#619) · c8666605
      Andrey Mokhov authored
      See #540 
      c8666605
  21. 13 Jun, 2018 3 commits
  22. 12 Jun, 2018 1 commit
  23. 10 Jun, 2018 1 commit