• jberryman's avatar
    Rough working LTO · 6f369534
    jberryman authored
    Very rough and hacky, with some hacks unnecessary but which I haven't
    taken the time to sort out yet.
    
    you need to make sure you have the lto plugin set up correctly, e.g.:
    
      $ cd /usr/lib/bfd-plugins/
      $ sudo ln -s /usr/lib/gcc/x86_64-linux-gnu/6/liblto_plugin.so .
    
    then do:
    
       $ export PATH=SHIMS_PATH:$PATH
       $ LD=gold  CC_STAGE0=gcc CC=gcc ./configure
       $ make
    
    You should adjust your path in the same way when building with this GHC,
    and you can do e.g.
    
      $ cabal new-build --disable-profiling --disable-library-profiling --with-compiler=your-ghc-source-tree/inplace/bin/ghc-stage2 --package-db=your-ghc-source-tree/inplace/lib/package.conf.d all
    
    You can see `-time` log in gcc shim file, play with recompilation
    options there.
    6f369534
Name
Last commit
Last update
..
Cabal @ 88738ba5 Loading commit data...
Win32 @ ca5fbc12 Loading commit data...
array @ 8af2f620 Loading commit data...
base Loading commit data...
binary @ 38adf7ce Loading commit data...
bytestring @ ce3c6a01 Loading commit data...
containers @ e5b3bbae Loading commit data...
deepseq @ 4f031810 Loading commit data...
directory @ e9debc1d Loading commit data...
doc Loading commit data...
filepath @ b10724be Loading commit data...
ghc-boot Loading commit data...
ghc-boot-th Loading commit data...
ghc-compact Loading commit data...
ghc-heap Loading commit data...
ghc-prim Loading commit data...
ghci Loading commit data...
haskeline @ 84a7b2b0 Loading commit data...
hpc @ 85e04edd Loading commit data...
integer-gmp Loading commit data...
integer-simple Loading commit data...
libiserv Loading commit data...
mtl @ c7d39673 Loading commit data...
parallel @ 5015bc74 Loading commit data...
parsec @ 34f9e98c Loading commit data...
pretty @ c3a14693 Loading commit data...
process @ 36a3ad57 Loading commit data...
stm @ d17acd28 Loading commit data...
template-haskell Loading commit data...
terminfo @ 27e82750 Loading commit data...
text @ 44ec2cee Loading commit data...
time @ 1fcaa07e Loading commit data...
transformers @ 80557845 Loading commit data...
unix @ f4f500d5 Loading commit data...
xhtml @ 721779ac Loading commit data...
Makefile Loading commit data...
defineTOP.mk Loading commit data...
gen_contents_index Loading commit data...
hscolour.css Loading commit data...
libraries-footer.txt Loading commit data...
libraries-header.txt Loading commit data...
prologue.txt.in Loading commit data...