Revision 14e7af6b1df9abac944080232aa41ca3b98a8fe4 authored by Christoph Reiter on 01 August 2018, 16:54:01 UTC, committed by Christoph Reiter on 01 August 2018, 17:05:04 UTC
The gresource code uses libelf if available but that also depends on mmap but isn't
guarded with HAVE_MMAP. This can make the build fail under MSYS2 where a mingw version
of libelf exists but there is no mmap.

Instead of guarting the libelf code with HAVE_LIBELF add a new macro named USE_LIBELF
which is only defined if libelf and mmap support are available.

Also install the mingw libelf version for CI so we catch similar errors in the future.
There exists a mingw build of libelf in msys2 and if available
1 parent 83a4cab
Raw File
meson.build
# tests

test_env = environment()
test_env.set('G_TEST_SRCDIR', meson.current_source_dir())
test_env.set('G_TEST_BUILDDIR', meson.current_build_dir())
test_env.set('G_DEBUG', 'gc-friendly')
test_env.set('MALLOC_CHECK_', '2')

test_cargs = ['-DG_LOG_DOMAIN="GLib"']

subdir('gobject')
subdir('refcount')
back to top