1. 21 Mar, 2019 1 commit
    • 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.