Skip to content

Some improvements to clang-cl builds

Chun-wei Fan requested to merge clang-cl-improvements into master


This attempts to address two issues with clang-cl builds:

  • Define _CRT_[SECURE|NONSTDC]_NO_WARNINGS in msvc_recommended_pragmas.h for clang-cl, and force-include it in clang-cl builds of GLib as well. (issue #2357 (closed)).

  • Just use _Static_assert() for CLang builds, since it supported that for a long time. (issue #2338 (closed)).

@amezin, can you see whether things work better for you, since I am certainly no clang-cl expert and I did the initial and experiemental clang-cl support from a Visual Studio point-of-view.

With blessings, thank you!

Merge request reports