<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="4.4.1">Jekyll</generator><link href="https://blog.farre.se/feed.xml" rel="self" type="application/atom+xml" /><link href="https://blog.farre.se/" rel="alternate" type="text/html" /><updated>2026-04-09T09:27:26+00:00</updated><id>https://blog.farre.se/feed.xml</id><title type="html">farre’s blog</title><subtitle>Blog by Andreas Farre</subtitle><author><name>Andreas Farre</name></author><entry><title type="html">BuildCache now works with mach</title><link href="https://blog.farre.se/posts/2026/04/09/buildcache-with-mach/" rel="alternate" type="text/html" title="BuildCache now works with mach" /><published>2026-04-09T00:00:00+00:00</published><updated>2026-04-09T00:00:00+00:00</updated><id>https://blog.farre.se/posts/2026/04/09/buildcache-with-mach</id><content type="html" xml:base="https://blog.farre.se/posts/2026/04/09/buildcache-with-mach/"><![CDATA[<p>I’m happy to announce that <a href="https://gitlab.com/bits-n-bites/buildcache">buildcache</a> is now a first-class compiler cache in <code class="language-plaintext highlighter-rouge">mach</code>. This has been a long time coming, and I’m excited to finally see it land.</p>

<!-- more -->

<p>For those unfamiliar, <a href="https://gitlab.com/bits-n-bites/buildcache">buildcache</a> is a compiler cache that can drastically cut down your rebuild times by caching compilation results. It’s similar to ccache, but even more so sccache, in that it supports C/C++ out of the box, as well as Rust. It has some nice unique properties of its own though, which we’ll look at more closely in following posts.</p>

<h2 id="getting-started">Getting started</h2>

<p>Setting it up is straightforward. Just add the following to your mozconfig:</p>

<figure class="highlight"><pre><code class="language-bash" data-lang="bash">ac_add_options <span class="nt">--with-ccache</span><span class="o">=</span>buildcache</code></pre></figure>

<p>Then build as usual:</p>

<figure class="highlight"><pre><code class="language-bash" data-lang="bash">./mach build</code></pre></figure>

<p>That’s it.</p>

<h2 id="give-it-a-try">Give it a try</h2>

<p>If you run into any issues, please file a bug and tag me. I’d love to hear how it works out for people, and any rough edges you might hit.</p>

<script src="https://utteranc.es/client.js" repo="farre/blog" issue-term="og:title" label="comments" theme="github-light" crossorigin="anonymous" async="">
</script>]]></content><author><name>Andreas Farre</name></author><category term="mozilla" /><category term="mach" /><category term="buildcache" /><summary type="html"><![CDATA[I’m happy to announce that buildcache is now a first-class compiler cache in mach. This has been a long time coming, and I’m excited to finally see it land.]]></summary></entry></feed>