1
0
mirror of https://github.com/nlohmann/json synced 2024-11-29 15:11:04 +00:00
nlohmannjson/.github/workflows
Thomas Braun 25a59b59f2 Github Actions: Add ClangCL on Windows
MS Visual Studio 2019 has builtin support for other compiler toolsets [1].

This commit adds support for compiling using LLVM/Clang 10 using Visual
Studio.

ClangCL pretends to be MSVC so the usual MSVC flags apply, see also [2].
For detecting if ClangCL is used, newer cmake verisons (>= 3.15) have
builtin support using CMAKE_CXX_COMPILER_FRONTEND_VARIANT [3], for older
ones a workaround is available using CMAKE_CXX_SIMULATE_ID [4].

[1]: https://devblogs.microsoft.com/cppblog/clang-llvm-support-in-visual-studio/
[2]: https://clang.llvm.org/docs/UsersManual.html#clang-cl
[3]: https://stackoverflow.com/a/10055571
[4]: 4fe34b2d29
2020-07-14 16:02:44 +02:00
..
codeql-analysis.yml 👷 add code scanning 2020-07-08 12:25:53 +02:00
macos.yml 🔧 explicitly switch on tests in CI 2020-05-27 13:22:14 +02:00
ubuntu.yml 🔧 explicitly switch on tests in CI 2020-05-27 13:22:14 +02:00
windows_clang_cl.yml Github Actions: Add ClangCL on Windows 2020-07-14 16:02:44 +02:00
windows_clang.yml 👷 remove Clang 8 2020-06-04 12:48:03 +02:00
windows.yml 🔧 explicitly switch on tests in CI 2020-05-27 13:22:14 +02:00