]> xenbits.xensource.com Git - libvirt.git/commit
src: Fix checking for clang
authorAndrea Bolognani <abologna@redhat.com>
Thu, 1 Mar 2018 16:32:08 +0000 (17:32 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Thu, 1 Mar 2018 16:47:54 +0000 (17:47 +0100)
commit65024c8939ef80fc5ccb05bd9bd7ecd70e37de3c
treeedc1c1a278bdf9cd383b8f4cbe6f8c38b3f13337
parent5535856f0e31aa6abf4cda11b5c53c0f164680f0
src: Fix checking for clang

The check was trying to use the shell variable $CC instead of
the make variable $(CC); it also interpreted grep's return code
wrong: 1 means the provided pattern was *not* matched. As a
result, pdwtags was never run, not even when building with gcc.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/Makefile.am