The compiler args are so verbose that CI jobs hit the limit on the
log file size GitLab is willing to capture.
Mitigate this a little bit by removing
-DIN_LIBVIRT
-Dabs_top_builddir="..dir.."
-Dabs_top_srcdir="..dir.."
The last two are already present in the meson-config.h file so
were redundant, and the first is easily added to internal.h.
NB, remote_protocol.x needed special treatment since it is an
exception which (intentionally) does NOT include internal.h
before libvirt/libvirt.h
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
#include <stdlib.h>
#include "glibcompat.h"
+#define IN_LIBVIRT
+
#if defined __clang_analyzer__ || defined __COVERITY__
# define STATIC_ANALYSIS 1
#endif
src_inc_dir = include_directories('.')
src_dep = declare_dependency(
- compile_args: [
- '-DIN_LIBVIRT',
- '-Dabs_top_builddir="@0@"'.format(meson.project_build_root()),
- '-Dabs_top_srcdir="@0@"'.format(meson.project_source_root()),
- ] + coverage_flags + win32_flags,
+ compile_args: coverage_flags + win32_flags,
dependencies: [
glib_dep,
libxml_dep,
* 'REMOTE_'. This makes names quite long.
*/
+%#define IN_LIBVIRT
%#include <libvirt/libvirt.h>
%#include "internal.h"
%#include "virxdrdefs.h"