From e2a008621fbdb9367c964958dc96afa326bd115b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 22 Aug 2022 00:06:52 -0400 Subject: Only build semaphore code if threads are available --- meson.build | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index a231cee..dae8e38 100644 --- a/meson.build +++ b/meson.build @@ -114,11 +114,16 @@ sources = files( 'src/digest.c', 'src/hash.c', 'src/ring.c', - 'src/sem.c', 'src/status.c', 'src/tree.c', ) +if thread_dep.found() + sources += files( + 'src/sem.c', + ) +endif + # Set appropriate arguments for building against the library type subdir('meson/library') extra_c_args = [] -- cgit v1.2.1