g++, colorgcc and ccache

后端 未结 7 2155
庸人自扰
庸人自扰 2021-02-04 01:45

Trying to combine ccache and colorgcc. Following link text:

  • my g++ is soft link to colorgcc
  • ~/.colorgccrc contains line: \"g++: ccache /usr/bin/g++\"
7条回答
  •  感动是毒
    2021-02-04 02:04

    As others have already said, it is a matter of setting up paths and symbolic links.

    Follow the invaluable Arch guide on this.

    I do this so many times and is such a tricky setup that I ended up setting up a docker wrapper with the right configuration.

    You can check it out here

    In short, use this alias

    alias mmake='docker run --rm -v "$(pwd):/src" -t ownyourbits/mmake'

    and do mmake instead of make

提交回复
热议问题