mirror of
https://github.com/sched-ext/scx.git
synced 2024-11-25 04:00:24 +00:00
meson: fail if get_clang_ver fails
In my dev enviroment, bpf_clang_ver is coming as NULL, since I am using upstream Clang. Fails graceful in this case. # /usr/local/bin/clang --version clang version 18.0.0git (https://github.com/llvm/llvm-project.git c458f928fad7bbcf08ab1da9949eb2969fc9f89c) Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: /usr/local/bin But the command below returns nothing /home/leit/Devel/scx/meson-scripts/get_clang_ver /usr/local/bin/clang Signed-off-by: Breno Leitao <leitao@debian.org>
This commit is contained in:
parent
3cda1bc690
commit
4a18e9c7f7
@ -41,6 +41,10 @@ if enable_rust
|
||||
endif
|
||||
|
||||
bpf_clang_ver = run_command(get_clang_ver, bpf_clang, check: true).stdout().strip()
|
||||
if bpf_clang_ver == ''
|
||||
error('Unable to find clang version')
|
||||
endif
|
||||
|
||||
bpf_clang_maj = bpf_clang_ver.split('.')[0].to_int()
|
||||
|
||||
if bpf_clang_maj < 16
|
||||
|
Loading…
Reference in New Issue
Block a user