If "-Werror" isn't used then Clang doesn't fail if an unrecognized flag is used. This causes "cc-option" to pass when it shouldn't. Also add "cxx-option" for flags that aren't supported by the C++ compiler. Bill Wendling (2): Makefile: use "-Werror" in cc-option Makefile: add "cxx-option" for C++ builds Makefile | 30 +++++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) -- 2.24.0.rc1.363.gb1bccd3e3d-goog