<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>mach — farre's blog</title>
    <link>https://blog.farre.se/tags/mach</link>
    <description>Posts tagged "mach" on farre's blog</description>
    <atom:link href="https://blog.farre.se/rss/mach.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>BuildCache now works with mach</title>
      <link>https://blog.farre.se/posts/2026/04/09/buildcache-with-mach/</link>
      <guid isPermaLink="true">https://blog.farre.se/posts/2026/04/09/buildcache-with-mach/</guid>
      <pubDate>Thu, 09 Apr 2026 00:00:00 +0000</pubDate>
      <description>&lt;p&gt;I’m happy to announce that &lt;a href=&quot;https://gitlab.com/bits-n-bites/buildcache&quot;&gt;buildcache&lt;/a&gt; is now a first-class compiler cache in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;mach&lt;/code&gt;. This has been a long time coming, and I’m excited to finally see it land.&lt;/p&gt;

&lt;!-- more --&gt;

&lt;p&gt;For those unfamiliar, &lt;a href=&quot;https://gitlab.com/bits-n-bites/buildcache&quot;&gt;buildcache&lt;/a&gt; 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.&lt;/p&gt;

&lt;h2 id=&quot;getting-started&quot;&gt;Getting started&lt;/h2&gt;

&lt;p&gt;Setting it up is straightforward. Just add the following to your mozconfig:&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;ac_add_options &lt;span class=&quot;nt&quot;&gt;--with-ccache&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;buildcache&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;Then build as usual:&lt;/p&gt;

&lt;figure class=&quot;highlight&quot;&gt;&lt;pre&gt;&lt;code class=&quot;language-bash&quot; data-lang=&quot;bash&quot;&gt;./mach build&lt;/code&gt;&lt;/pre&gt;&lt;/figure&gt;

&lt;p&gt;That’s it.&lt;/p&gt;

&lt;h2 id=&quot;give-it-a-try&quot;&gt;Give it a try&lt;/h2&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;script src=&quot;https://utteranc.es/client.js&quot; repo=&quot;farre/blog&quot; issue-term=&quot;og:title&quot; label=&quot;comments&quot; theme=&quot;github-light&quot; crossorigin=&quot;anonymous&quot; async=&quot;&quot;&gt;
&lt;/script&gt;

</description>
    </item>
    
  </channel>
</rss>
