Windows open source project that use clang as default compiler

Hi All
Im looking for a Windows open source projects that uses clang as a default compiler .
please share them with me .

regards

Adi

IIRC Firefox uses clang-cl on windows builds

https://firefox-source-docs.mozilla.org/build/buildsystem/supported-configurations.html

Chromium uses Clang for Windows since 2018: Clang is now used to build Chrome for Windows - The LLVM Project Blog

I believe LibreOffice is another example, but I don’t have a link for that.

Rizin:

We use clang-cl to prepare artifacts along with VS builds using both AppVeyor and GitHub Actions CI jobs.

thanks :slight_smile:

I believe LibreOffice is another example, but I don’t have a link for that.

hard-require Clang for Skia on Windows

https://cgit.freedesktop.org/libreoffice/core/commit/?id=439ea553bef5a7e29ed20764ede1ae987e839bca&utm_source=anzwix

Thunderbird as well.

https://groups.google.com/g/mozilla.dev.platform/c/wwO48xXFx0A/m/ztg4i0DYAAAJ

thank you for your response . can you share a guide on how you do it with VS on windows ?

Not sure I understand your question. In both cases, we use Meson buildsystem which can either use MSVC (VS) toolchain or the clang-cl one, see details in our CI files I linked earlier.

See official document for LLVM (clang-cl) toolset (for VS 2019, 2022) at https://learn.microsoft.com/en-us/cpp/build/clang-support-msbuild?view=msvc-170, it may only works with bundled old LLVM available in Visual Studio installer.

or you can use this one maintained by me: GitHub - zufuliu/llvm-utils: LLVM/Clang toolsets for Visual Studio 2022, 2019, 2017, 2015, 2013, 2012 and 2010. (for VS 2010 and above and any LLVM), see online builds for VS 2019 and 2022 at Actions · zufuliu/notepad2 · GitHub, and VS 2017 at AppVeyor.