• 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
.arc-linters Loading commit data...
.circleci Loading commit data...
SHIMS_PATH Loading commit data...
bindisttest Loading commit data...
compiler Loading commit data...
distrib Loading commit data...
docs Loading commit data...
driver Loading commit data...
ghc Loading commit data...
hadrian @ 4265e3aa Loading commit data...
includes Loading commit data...
inplace Loading commit data...
libffi Loading commit data...
libffi-tarballs @ 96d02800 Loading commit data...
libraries Loading commit data...
mk Loading commit data...
nofib @ a3b0f2b2 Loading commit data...
rts Loading commit data...
rules Loading commit data...
testsuite Loading commit data...
utils Loading commit data...
.appveyor.sh Loading commit data...
.arcconfig Loading commit data...
.arclint Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
ANNOUNCE Loading commit data...
HACKING.md Loading commit data...
INSTALL.md Loading commit data...
LICENSE Loading commit data...
MAKEHELP.md Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
Vagrantfile Loading commit data...
aclocal.m4 Loading commit data...
appveyor.yml Loading commit data...
boot Loading commit data...
build.nix.sh Loading commit data...
config.guess Loading commit data...
config.sub Loading commit data...
configure.ac Loading commit data...
ghc.mk Loading commit data...
install-sh Loading commit data...
llvm-passes Loading commit data...
llvm-targets Loading commit data...
packages Loading commit data...
settings.in Loading commit data...
validate Loading commit data...