[swift-dev] ccache and/or distcc for swift

Daniel Dunbar daniel_dunbar at apple.com
Tue Sep 27 14:47:39 CDT 2016

Hi Oscar,

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.

 - Daniel

> 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.
> Thanks!
> -Oscar
> _______________________________________________
> swift-dev mailing list
> swift-dev at swift.org
> https://lists.swift.org/mailman/listinfo/swift-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20160927/2071b355/attachment.html>

More information about the swift-dev mailing list