summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-05-15 19:43:59 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-05-15 20:39:38 +0200
commit4a5bdeac7d407a396803f3dbcac41f3ca7cea57d (patch)
tree3c953ade295d4e8b8197feba3b06d5bd57231111
parentmeson: disable bpf if skip-deps is enabled (diff)
downloadsystemd-4a5bdeac7d407a396803f3dbcac41f3ca7cea57d.tar.xz
systemd-4a5bdeac7d407a396803f3dbcac41f3ca7cea57d.zip
meson: always use ExternalProgram.path()
Even if we use meson >= 0.55, using path() does not produce any error or warning if the required version is below 0.55. Let's convert path() with full_path() when we requires meson >= 0.55.
-rw-r--r--meson.build6
1 files changed, 1 insertions, 5 deletions
diff --git a/meson.build b/meson.build
index 52d36d7116..3995efb69c 100644
--- a/meson.build
+++ b/meson.build
@@ -1012,11 +1012,7 @@ else
r = find_program('clang', required : bpf_framework_required, version : '>= 10.0.0')
clang_found = r.found()
if clang_found
- if meson.version().version_compare('>= 0.55')
- clang = [r.full_path()]
- else
- clang = [r.path()]
- endif
+ clang = r.path()
endif
# Assume that the required flags are supported by the found clang.
clang_supports_flags = clang_found