Install and use ccache in linux to accelerate Compilation
Source: Internet
Author: User
Install and use ccache in linux to accelerate compilation-general Linux technology-Linux programming and kernel information. For more information, see the following. Every time you compile a project in linux, whether it is the latest or not. o files, all of which recompile my files, get bored and install ccache to solve this problem ~~~ Easy to use
Install and use ccache
1 switch to the root user to install ccache
Yum install ccache
4 vi ~ /. Bash_profile
Add the/usr/lib/ccache/bin PATH to the PATH.
PATH =/usr/lib/ccache/bin: $ PATH: $ HOME/bin
In this way,/usr/lib/ccache/bin/g ++ will be started every time you start g ++, instead of/usr/bin/g ++.
The effect is the same as that of using the command line ccache g ++ :)
In this way, the ccache is automatically started when the g ++ compiler is used every time a user logs on.
5. Now, try again make, hoho, and compile quickly.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.