Replacing ld with gold - any experience?

后端 未结 8 847
你的背包
你的背包 2020-11-28 04:32

Has anyone tried to use gold instead of ld?

gold promises to be much faster than ld, so it may help speeding up test cycles fo

8条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-28 05:04

    You could link ld to gold (in a local binary directory if you have ld installed to avoid overwriting):

    ln -s `which gold` ~/bin/ld
    

    or

    ln -s `which gold` /usr/local/bin/ld
    

提交回复
热议问题