Now -split-objs work with --make

Bulat Ziganshin bulat.ziganshin at gmail.com
Fri Mar 3 03:39:05 EST 2006


This means that ghc 6.6 starting from current build can optimize
EXE sizes by throwing away all unused functions


This is a forwarded message

===8<==============Original message text===============
Date: Thu, 2 Mar 2006 09:07:34 -0800
From: Simon Marlow <simonmar at microsoft.com>
Subject: patch applied (ghc): Make -split-objs work with --make
To: cvs-ghc at haskell.org
Message-ID: <20060302170734.GA2619 at cvs.haskell.org>

Thu Mar  2 09:05:05 PST 2006  Simon Marlow <simonmar at microsoft.com>
  * Make -split-objs work with --make
  This turned out to be a lot easier than I thought.  Just moving a few
  bits of -split-objs support from the build system into the compiler
  was enough.  The only thing that Cabal needs to do in order to support
  -split-objs now is to pass the names of the split objects rather than
  the monolithic ones to 'ar'.

    M ./ghc/compiler/Makefile +2
    M ./ghc/compiler/main/DriverPhases.hs +1
    M ./ghc/compiler/main/DriverPipeline.hs -19 +50
    M ./mk/target.mk -28

===8<===========End of original message text===========



-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Glasgow-haskell-users mailing list