[llvm] [CMake] Add LLVM_ENABLE_WARNING_SUPPRESSIONS to toggle warning suppressions (PR #183439)

Shaojie Zhu via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 2 02:27:22 PST 2026


ShaojieZhuIntel wrote:

> Please also implement the flag for non-MSVC compilers, which also have warning suppressions.

Thanks for your feedback! I have updated the implementation to cover non-MSVC compilers (GCC/Clang) as well. The -Wno-... warning suppression flags are now safely filtered out when LLVM_ENABLE_WARNING_SUPPRESSIONS is set to OFF.

Could you please take another look? Thanks!

https://github.com/llvm/llvm-project/pull/183439


More information about the llvm-commits mailing list