]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: always use ExternalProgram.path()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 15 May 2022 17:43:59 +0000 (02:43 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 15 May 2022 18:39:38 +0000 (03:39 +0900)
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.

meson.build

index 52d36d71160588eb594710c3cd05e0764970d053..3995efb69caea37de30b8bcc3e68e400f14555a6 100644 (file)
@@ -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