diff options
author | Simon McVittie <smcv@collabora.com> | 2022-07-25 14:30:02 +0100 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2022-07-26 17:08:56 +0000 |
commit | bc245968864d82e39d6fcb754ea84150a12be0a0 (patch) | |
tree | 70fb92f661a7bb94a2d65fb1588f57146fdd675d /dbus | |
parent | 72d0a79ebab73ce05f691cf536f0a57bb6ffd693 (diff) | |
download | dbus-bc245968864d82e39d6fcb754ea84150a12be0a0.tar.gz |
meson: Only require C++ compiler when building for Windows
dbus is generally a C-only project, but the Windows side has a tiny
amount of C++ to initialize global locks (because Windows doesn't have
a direct equivalent of PTHREAD_MUTEX_INITIALIZER). We don't need a C++
compiler when building for a non-Windows OS, so there's no need to
find it or check which options it supports.
Signed-off-by: Simon McVittie <smcv@collabora.com>
Diffstat (limited to 'dbus')
-rw-r--r-- | dbus/meson.build | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dbus/meson.build b/dbus/meson.build index 2fd7cc72..a8b1a60e 100644 --- a/dbus/meson.build +++ b/dbus/meson.build @@ -101,6 +101,9 @@ dbus_util_sources = [ ] if platform_windows + # On Windows, we use C++ constructors to initialize global locks + assert(using_cpp) + dbus_lib_sources += [ 'dbus-init-win.cpp', 'dbus-server-win.c', |