User:Mattx86/qwn:Enabling ccache: Difference between revisions

From Alpine Linux
(Created page with "''"ccache is a compiler cache. It speeds up recompilation by caching previous compilations and detecting when the same compilation is being done again. Supported languages are C,...")
 
mNo edit summary
 
Line 4: Line 4:
{{Cmd|apk add ccache}}
{{Cmd|apk add ccache}}


Next, add it to your path by placing the following in your <code>~/.profile</code> for <code>ash</code> or <code>~/.bash_profile</code> for <code>bash</code>.
Next, add it to your path by placing the following in your <code>~/.profile</code> (<code>ash</code>) or <code>~/.bash_profile</code> (<code>bash</code>).
<pre>export PATH="/usr/lib/ccache/bin:$PATH"</pre>
<pre>export PATH="/usr/lib/ccache/bin:$PATH"</pre>

Latest revision as of 06:33, 5 April 2011

"ccache is a compiler cache. It speeds up recompilation by caching previous compilations and detecting when the same compilation is being done again. Supported languages are C, C++, Objective-C and Objective-C++."

To enable ccache, first install ccache:

apk add ccache

Next, add it to your path by placing the following in your ~/.profile (ash) or ~/.bash_profile (bash).

export PATH="/usr/lib/ccache/bin:$PATH"