We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 85ae8ca + 47889d7 commit 3fe71f8Copy full SHA for 3fe71f8
1 file changed
scripts/rust-is-available.sh
@@ -129,8 +129,7 @@ if [ "$1" = -v ]; then
129
if [ "$cc_name" = Clang ]; then
130
clang_version=$( \
131
LC_ALL=C "$CC" --version 2>/dev/null \
132
- | head -n 1 \
133
- | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' \
+ | sed -nE '1s:.*version ([0-9]+\.[0-9]+\.[0-9]+).*:\1:p'
134
)
135
if [ "$clang_version" != "$bindgen_libclang_version" ]; then
136
echo >&2 "***"
0 commit comments