1
0
mirror of https://github.com/systemd/systemd.git synced 2025-09-21 09:44:45 +03:00

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.
This commit is contained in:
Yu Watanabe
2022-05-16 02:43:59 +09:00
parent 3d954ef147
commit 4a5bdeac7d

View File

@@ -1012,11 +1012,7 @@ else
r = find_program('clang', required : bpf_framework_required, version : '>= 10.0.0') r = find_program('clang', required : bpf_framework_required, version : '>= 10.0.0')
clang_found = r.found() clang_found = r.found()
if clang_found if clang_found
if meson.version().version_compare('>= 0.55') clang = r.path()
clang = [r.full_path()]
else
clang = [r.path()]
endif
endif endif
# Assume that the required flags are supported by the found clang. # Assume that the required flags are supported by the found clang.
clang_supports_flags = clang_found clang_supports_flags = clang_found