Why does GHC take so long to link?

前端 未结 3 738
你的背包
你的背包 2020-12-29 06:23
>cabal update
>cabal install cabal-install
.......
[43 of 44] Compiling Distribution.Client.Install ( Distribution/Client/Install.hs, dist/build/cabal/cabal-tm         


        
3条回答
  •  灰色年华
    2020-12-29 06:41

    Very likely it's the linker itself. The standard ld from binutils is known to be slow. If you want to speed things up (and live a bit on the edge), try installing the Gold linker. On Ubuntu (and I assume Debian), that would be:

    sudo apt-get install binutils-gold
    

    I've been using it on my home system for a while now, no issues yet.

提交回复
热议问题