Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/haskell/Cabal. Pull mirroring updated .
  1. Aug 22, 2015
  2. Aug 20, 2015
    • Thomas Miedema's avatar
      Strip libraries at install/copy time. Never strip libraries in build directory. · 7ef72b31
      Thomas Miedema authored
      Two changes:
      
        * strip static libraries (.a files) at install/copy time, instead of
          at build time. Note that Cabal strips shared libraries (.so files)
          and executables at install/copy time also.
      
          This is needed for GHC, because it uses Cabal (via ghc-cabal copy)
          to install the boot libraries, and relies on Cabal to take of
          library stripping. Currently .so files indeed get properly stripped,
          but .a files do not.
      
          (Stripping static libraries at build time was introduced in
          60409cb9, with the explanation:
          "Call 'stripLib' from createLibArchive so that it's done only
          once.")
      
          This bug (if you want to call it that) partially explains the
          difference in size of a GHC installation before and after manual
          stripping, reported in
          https://github.com/haskell/cabal/issues/1622#issuecomment-62076817
          (The other parts are that the GHC build system currently doesn't
          strip executables on installation:
          https://ghc.haskell.org/trac/ghc/ticket/9087, and neither are the
          RTS library stripped, since they don't go through Cabal).
      
        * never strip the copy of a library in the build directory. Only
          strip the copy that is installed. Note that Cabal never strips
          executables in the build directory either.
      
          This might speed up compilation of a package under development,
          since stripping won't be performed for every 'cabal build'. It is
          also consistent with the GNU coding standards for 'install-strip':
      
            "install-strip should not strip the executables in the build
            directory which are being copied for installation. It should only
            strip the copies that are installed."
      
          Source:
          http://www.gnu.org/prep/standards/html_node/Standard-Targets.html
      7ef72b31
    • Thomas Miedema's avatar
      Don't check metadata of installed .a file · e18ad75a
      Thomas Miedema authored
      When running the `strip` command (without the -D option) on an installed
      .a file, `strip` will write the current time to all file headers in the
      .a file. Update the DeterministicAr test to allow this.
      
      The DeterministicAr test is supposed to test for regressions in
      relinking avoidance. It is sufficient to do so in the build directory
      only.
      e18ad75a
    • Mikhail Glushenkov's avatar
      Merge pull request #2785 from BardurArantsson/dead-code-1 · 6627c7d4
      Mikhail Glushenkov authored
      Remove dead code
      6627c7d4
    • bardur.arantsson's avatar
      Remove dead code · b25adbe6
      bardur.arantsson authored
      Only the NoComments case of IncludeComments was ever used and we can
      simplify the generation of the default "package environment file"
      accordingly.
      b25adbe6
  3. Aug 19, 2015
  4. Aug 17, 2015
  5. Aug 16, 2015
  6. Aug 15, 2015
  7. Aug 11, 2015
  8. Aug 09, 2015
  9. Aug 08, 2015
  10. Aug 03, 2015
  11. Aug 02, 2015
  12. Jul 31, 2015
  13. Jul 30, 2015
    • Randy Polen's avatar
      Propose code for supporting haddock response files · e61d8dd2
      Randy Polen authored
      This change is for adding the ehancement to support haddock
      response files.  This is what was used to build HP 7.10.2
      for Windows, but it does need a corresponding change in
      haddock to utilize it. Hopefully, this and its corresponding
      haddock change can make it into the next ghc release and
      eliminate much gnashing of teeth, error prone, and time
      consuming manual steps in the HP build process.
      
      Modified:
      
      * Cabal/Distribution/Simple/Haddock.hs
        * renderArgs function: I put a couple of things into locals
          since I needed another use for UTF8 support check, plus I
          added another check based on version; the temp file logic
          was just as the prologue case above but I did need to
          repeat the invocation of the 'k' function in order to
          keep the cases separate and allow proper handling of the
          temp file automatic (or not, per --keep-temp-files)
          deletion.  Important: the haddock version being check
          against for response file support, greater than 2.16.1,
          is a placeholder and may or may not be the actual value
          since that will depend on the as-yet-unreleased haddock
          (which looks like it may be >2.16.1 but at this moment is
          not released).
      e61d8dd2
Loading