Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/GStreamer/orc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2022-10-31 18:35:42 +0300
committerTim-Philipp Müller <tim@centricular.com>2022-10-31 18:49:29 +0300
commit3670a76c162c4b22f939e0a414df97f0732db251 (patch)
treee9adba48fe4e05016a20fcf0174872bfb199ce64
parent7c29a0724fa750a1f4de0c7617edc3b63cdd6606 (diff)
Fix build on iOS simulator
pthread_jit_write_protect_np() is available but unusable on iOS simulator: ../orc/orccompiler.c:460:3: error: 'pthread_jit_write_protect_np' is unavailable: not available on iOS Fixes #43
-rw-r--r--meson.build8
1 files changed, 7 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index b29dddd..f08dee8 100644
--- a/meson.build
+++ b/meson.build
@@ -130,7 +130,13 @@ cdata.set('HAVE_MONOTONIC_CLOCK', cc.compiles(monotonic_test))
cdata.set('HAVE_GETTIMEOFDAY', cc.has_function('gettimeofday'))
cdata.set('HAVE_POSIX_MEMALIGN', cc.has_function('posix_memalign', prefix : '#include <stdlib.h>'))
cdata.set('HAVE_MMAP', cc.has_function('mmap'))
-cdata.set('HAVE_PTHREAD_JIT', cc.has_function('pthread_jit_write_protect_np'))
+
+# pthread_jit_write_protect_np() is available but unusable on iOS simulator
+if host_os == 'ios' and cpu_family == 'x86_64'
+ cdata.set('HAVE_PTHREAD_JIT', false)
+else
+ cdata.set('HAVE_PTHREAD_JIT', cc.has_function('pthread_jit_write_protect_np'))
+endif
cdata.set('HAVE_SYS_TIME_H', cc.has_header('sys/time.h'))
cdata.set('HAVE_UNISTD_H', cc.has_header('unistd.h'))