]> xenbits.xensource.com Git - libvirt.git/commit
Require use of GCC 4.4 or CLang compilers
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 5 Jul 2017 09:35:32 +0000 (10:35 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 11 Jul 2017 12:57:11 +0000 (13:57 +0100)
commit24241c236e5e0b0b51a33ba539b40f5429a0df0e
treee0cb2ece9440bc5ae712b61d0c828bb68c0b0db9
parent83b98f194b7b4e51a21aec92ecbd3a9ad00de407
Require use of GCC 4.4 or CLang compilers

We only ever test libvirt with GCC or CLang which provides a
GCC compatible compilation environment. Between them, these
compilers cover every important operating system platform,
even Windows.

Mandate their use to make it explicit that we don't care about
compilers like Microsoft VCC or other UNIX vendor C compilers.

GCC 4.4 was picked as the baseline, since RHEL-6 ships 4.4.7
and that lets us remove a large set of checks. There is a slight
issue that CLang reports itself as GCC 4.2, so we must also check
if __clang__ is defined. We could check a particular CLang version
too, but that would require someone to figure out a suitable min
version which is fun because OS-X reports totally different CLang
version numbers from CLang builds on Linux/BSD

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
config-post.h
src/internal.h