<div dir="ltr">For those following along, David's problem was related to the blog article not routing the ccache calls through the launch scripts for Ninja and Makefiles and instead invoking ccache directly. The Xcode arrangement was the only thing using the launch scripts. While this was okay, it wasn't necessarily what devs always expected. The article has been updated and now shows how to route all three through the same set of launch scripts for consistent behaviour.<div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 1, 2017 at 10:49 AM, Florent Castelli <span dir="ltr"><<a href="mailto:florent.castelli@gmail.com" target="_blank">florent.castelli@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000"><span class="">
    <div class="m_-7351383118658550027moz-cite-prefix">On 31/01/2017 23:34, Craig Scott wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote"><br>
            <div>If you need to set CCACHE_DIR as an environment
              variable, then my previous email shows how to embed that
              in the launcher script, which will work for both Xcode and
              Linux (since the same launcher script is ultimately being
              invoked for both cases). All that said, I've never needed
              to set CCACHE_DIR and I mix OSX and iOS builds on the same
              machine. As has already been mentioned by someone else,
              ccache is smart enough to recognise the two builds as
              different because the command lines will be different,
              hence you don't get an iOS object file for a OSX build,
              for example.</div>
            <div><br>
            </div>
          </div>
        </div>
      </div>
    </blockquote></span>
    To that, I will add that ccache is certainly smart enough to save
    both iOS, macOS or Android builds in the same cache, but you need to
    be careful and maybe set higher limits for the cache size folder as
    the default one might not be suitable for your usage.<br>
    See the documentation on how to set it higher.<span class="HOEnZb"><font color="#888888"><br>
    <br>
    /Florent<br>
  </font></span></div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Craig Scott<br><div>Melbourne, Australia</div><div><a href="https://crascit.com" target="_blank">https://crascit.com</a><br></div></div></div></div></div></div></div>
</div>