[llvm-dev] Enable compiler warnings

Paul C. Anagnostopoulos via llvm-dev llvm-dev at lists.llvm.org
Wed Sep 23 12:04:27 PDT 2020


Can someone tell me the magic CMake changes that I need to make so that the C++ compiler will display warnings and terminate? I broke the build yesterday because I had not seen a warning that then showed up in the build.

I have these two options set in CMakeCache.txt:

//Enable compiler warnings.
LLVM_ENABLE_WARNINGS:BOOL=ON

//Fail and stop if a warning is triggered.
LLVM_ENABLE_WERROR:BOOL=ON



More information about the llvm-dev mailing list