diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2019-07-24 14:44:39 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2019-11-19 05:49:35 +0800 |
commit | 7661b1fae982da029ef56e58a1df2a4d6fd48444 (patch) | |
tree | a803e98a92ee72c0175a922ba334e2373c5ba921 /test | |
parent | e9db26898b8aae8737dddb11f5ba2abb6ec6ca5f (diff) |
build: Don't assume PThreads if threading support is found
Look also for pthread.h if threading support is found by Meson, as the
underlying threading support may not be PThreads, depending on platform.
For now, disable the thread-test test program if pthread.h and if
necessary, the PThreads library, cannot be found, as the current
implementation assumes the use of PThreads.
Also bump the required Meson version to 0.50.0 since we need it for
-cc.get_argument_syntax()
-For a later commit, the has_headers sub-method for cc.find_library()
Diffstat (limited to 'test')
-rw-r--r-- | test/meson.build | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/meson.build b/test/meson.build index a2da108..a2c7554 100644 --- a/test/meson.build +++ b/test/meson.build @@ -34,7 +34,6 @@ tests = [ 'scaling-crash-test', 'alpha-loop', 'scaling-helpers-test', - 'thread-test', 'rotate-test', 'alphamap', 'gradient-crash-test', @@ -54,6 +53,12 @@ tests = [ 'tolerance-test', ] +# Remove/update this once thread-test.c supports threading methods +# other than PThreads +if pthreads_found + tests += 'thread-test' +endif + progs = [ 'lowlevel-blt-bench', 'radial-perf-test', |