This website requires JavaScript.
Explore
Help
Register
Sign In
JakeHillion
/
scx-upstream
Watch
1
Star
0
Fork
0
You've already forked scx-upstream
mirror of
https://github.com/sched-ext/scx.git
synced
2024-11-22 19:01:49 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
4a77c8f8fb
scx-upstream
/
meson-scripts
/
get_clang_ver
4 lines
88 B
Plaintext
Raw
Normal View
History
Unescape
Escape
build, scx_utils: Misc improvements - build: Check clang version like scx_utils does. - scx_utils: Generate rerun-if-env-changed directives.
2023-12-01 20:20:06 +00:00
#!/bin/bash
meson: support clang built from git get_clang_ver fails if clang is built from scratch. Teach get_clang_ver to recognize the clang version even for clang built from git. These are the tests I ran: # /usr/local/bin/clang --version clang version 18.0.0git (https://github.com/llvm/llvm-project.git c458f928fad7bbcf08ab1da9949eb2969fc9f89c) # meson-scripts/get_clang_ver /usr/local/bin/clang 18.0.0 # /usr/bin/clang --version clang version 17.0.6 (CentOS 17.0.6-5.el9) # meson-scripts/get_clang_ver /usr/bin/clang 17.0.6 Signed-off-by: Breno Leitao <leitao@debian.org>
2024-03-14 10:39:09 +00:00
"$1" --version | sed -nr 's/^.*clang version ([\.0-9]*)(git)?( .*)?$/\1/p'
Reference in New Issue
Copy Permalink