Skip to content

Commit eb57e75

Browse files
authored
Merge pull request #789 from tiagolam/tiagolam/fix-build-clang-warning
scripts: Take only first line of clang version.
2 parents 9003f42 + d84bdb6 commit eb57e75

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/rust-is-available.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ bindgen_libclang_version=$( \
104104
LC_ALL=C "$BINDGEN" $(dirname $0)/rust-is-available-bindgen-libclang.h 2>&1 >/dev/null \
105105
| grep -F 'clang version ' \
106106
| grep -oE '[0-9]+\.[0-9]+\.[0-9]+' \
107+
| head -n 1 \
107108
)
108109
bindgen_libclang_min_version=$($min_tool_version llvm)
109110
bindgen_libclang_cversion=$(get_canonical_version $bindgen_libclang_version)

0 commit comments

Comments
 (0)