Building skia with clang(-cl)

Miklos Vajna vmiklos at
Thu Apr 23 09:46:57 UTC 2020


In short, I would like to hear what others think about using clang(-cl)
for building skia.

Why? See this video from Lubos, showing skia raster performance on
Windows: <>. Above is clang-cl, below is
MSVC. 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. This would be the

(This is raster rendering; if the needed HW is in place, then Vulkan
rendering is used, and that's not a problem with msvc/gcc, either.)

Regarding the cost, clang-cl is actually just 1 more click when you
install Visual Studio 2019, it's not something you need to download from separately.

Current state is that you get a more or less silent warning from
configure if clang is missing; and it's used to build skia (and only
skia, to be conservative) if it's found.

I think it would make sense to make this more strict and:

1) Make the warning more visible, i.e. a yellow warning at the end of
configure, that is actually noticed by most people.

2) Make the warning an error in case of release builds (or something
like that).

What do others think?


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: Digital signature
URL: <>

More information about the LibreOffice mailing list