• 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
..
check-api-annotations Loading commit data...
check-ppr Loading commit data...
checkUniques Loading commit data...
compare_sizes Loading commit data...
completion Loading commit data...
count_lines Loading commit data...
coverity Loading commit data...
deriveConstants Loading commit data...
describe-unexpected Loading commit data...
fs Loading commit data...
gen-dll Loading commit data...
genapply Loading commit data...
genprimopcode Loading commit data...
ghc-cabal Loading commit data...
ghc-pkg Loading commit data...
ghctags Loading commit data...
haddock @ 15b62fc1 Loading commit data...
hp2ps Loading commit data...
hpc Loading commit data...
hsc2hs @ 02127784 Loading commit data...
iserv Loading commit data...
iserv-proxy Loading commit data...
llvm-targets Loading commit data...
lndir Loading commit data...
mkdirhier Loading commit data...
runghc Loading commit data...
testremove Loading commit data...
touchy Loading commit data...
unlit Loading commit data...
vagrant Loading commit data...