• 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
..
atomic.c Loading commit data...
bswap.c Loading commit data...
clz.c Loading commit data...
ctz.c Loading commit data...
debug.c Loading commit data...
longlong.c Loading commit data...
pdep.c Loading commit data...
pext.c Loading commit data...
popcnt.c Loading commit data...
word2float.c Loading commit data...