[swift-dev] ccache and/or distcc for swift
daniel_dunbar at apple.com
Tue Sep 27 14:47:39 CDT 2016
Nothing exists like that for Swift yet -- it is non-trivial for several reasons, the big two are:
1. The Swift compilation model relies on global information for a module, and needs to see all the sources. This process is currently embedded in the `swiftc` driver which would need to be aware of how to manage this process (or factored into a library API that a client able to manage the distribution could interact with).
2. The Swift compilation model also heavily leverages the ability to import Clang modules, which means that it *also* needs to be able to see large amounts of C headers, in modular model not a header preprocessing model. The distribution mechanism would also need to be aware of this.
> On Sep 27, 2016, at 11:09 AM, Oscar Bonilla via swift-dev <swift-dev at swift.org> wrote:
> Hello swift developers,
> I was wondering if any of you knows anything about something
> like ccache and/or distcc for swift.
> Basically, what I want is to speed up compiles by caching the result
> (like ccache does) and then reusing the compilation results across
> multiple machines.
> Does anything like that exist for swift? I looked at ccache but they
> don't support swift and I couldn't find anything on distcc either.
> swift-dev mailing list
> swift-dev at swift.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-dev