mbox series

[kvm-unit-tests,0/2] Use "-Werror" for checking flags

Message ID 20191107010844.101059-1-morbo@google.com (mailing list archive)
Headers show
Series Use "-Werror" for checking flags | expand

Message

Bill Wendling Nov. 7, 2019, 1:08 a.m. UTC
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(-)