mirror of
https://github.com/JakeHillion/scx.git
synced 2024-11-26 19:30:24 +00:00
2341b67971
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>
4 lines
95 B
Bash
Executable File
4 lines
95 B
Bash
Executable File
#!/bin/bash
|
|
|
|
"$1" --version | sed -nr 's/^.*clang version ([\.0-9]*)(git)?(\+.*)?( .*)?$/\1/p'
|