This website requires JavaScript.
Explore
Help
Register
Sign In
JakeHillion
/
scx
Watch
1
Star
0
Fork
0
You've already forked scx
mirror of
https://github.com/JakeHillion/scx.git
synced
2024-12-04 14:57:12 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
dad25f1b5d
scx
/
meson-scripts
/
get_clang_ver
4 lines
95 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
Support LLVM_VERSION_SUFFIX in clang version parsing regex If LLVM is compiled with the LLVM_VERSION_SUFFIX cmake option, then the version may have an additional suffix, for example "18.1.7+libcxx". Gentoo for example uses this to fend off ABI issues between libstdc++ and libc++. Signed-off-by: Violet Purcell <vimproved@inventati.org>
2024-06-12 16:55:43 +01:00
"$1" --version | sed -nr 's/^.*clang version ([\.0-9]*)(git)?(\+.*)?( .*)?$/\1/p'
Reference in New Issue
Copy Permalink