PolicyKit: Branch 'master'
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Mar 30 14:30:43 UTC 2022
meson.build | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit b533b25208f4ea32bed1808bd824e70cfe4b6629
Author: Daniel E <daniel.engberg.lists at pyret.net>
Date: Wed Mar 30 14:30:42 2022 +0000
build: Add fallback looking for duktape's library and header
diff --git a/meson.build b/meson.build
index dd09b28..c6765fd 100644
--- a/meson.build
+++ b/meson.build
@@ -137,7 +137,11 @@ duktape_req_version = '>= 2.2.0'
js_engine = get_option('js_engine')
if js_engine == 'duktape'
- js_dep = dependency('duktape', version: duktape_req_version)
+ js_dep = dependency('duktape', version: duktape_req_version, required: false)
+ if not js_dep.found()
+ message('Falling back to looking for library and header...')
+ js_dep = cc.find_library('duktape', has_headers: ['duktape.h'], required: true)
+ endif
libm_dep = cc.find_library('m')
thread_dep = dependency('threads')
func = 'pthread_condattr_setclock'
More information about the hal-commit
mailing list