Building skia with clang(-cl)

Luboš Luňák l.lunak at
Thu Apr 23 13:48:43 UTC 2020

On Thursday 23 of April 2020, Miklos Vajna wrote:
> Hi,
> In short, I would like to hear what others think about using clang(-cl)
> for building skia.

 Just for completeness, there's one more option, and that's using Clang-cl 
instead of MSVC for everything. E.g. Mozilla does it, it is already possible 
to build LO that way (and I think Stephan does that regularly?).

 I'm not promoting this option though, as there are drawbacks to it too. 
Clang-cl currently builds noticeably more slowly then MSVC with 
enabled-by-default PCHs (for half a year I still haven't managed to get into 
Clang my PCH patches *sigh*), and I don't know how much testing 
Clang-cl-built LO has received. At least at this point it's probably better 
to just go with the gbuild hack I've created.

> The reason for the difference is that skia developers focus on
> good performance with clang, so building their codebase with gcc or msvc
> works, but the result is not as great as it could be.

 Note that this is primarily about Windows, as elsewhere Skia is currently 
used only by the "gen" VCL backend, which AFAIK ~nobody uses.

 Luboš Luňák
 l.lunak at

More information about the LibreOffice mailing list