Skip to content
This repository was archived by the owner on Apr 13, 2024. It is now read-only.

Commit 498ec6e

Browse files
committed
driver: Fix check_ar_version with LLVM source builds
llvm-ar will have 'svn' in its version by default (when LLVM_VERSION_SUFFIX is not set to anything during cmake). + check_ar_version + llvm-ar --version + grep -q LLVM ++ llvm-ar --version ++ grep version ++ sed -e 's/.*LLVM version //g' -e 's/[[:blank:]]*$//' -e 's/\.//g' + [[ 900svn -lt 900 ]] ./driver.sh: line 195: [[: 900svn: value too great for base (error token is "900svn") [skip ci] Fixes: 473e1e4 ("driver: Improvements around binary locating") Signed-off-by: Nathan Chancellor <[email protected]>
1 parent 1e8522c commit 498ec6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

driver.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ check_dependencies() {
191191
# fall back to GNU ar and let them know.
192192
check_ar_version() {
193193
if ${AR} --version | grep -q "LLVM" && \
194-
[[ $(${AR} --version | grep version | sed -e 's/.*LLVM version //g' -e 's/[[:blank:]]*$//' -e 's/\.//g') -lt 900 ]]; then
194+
[[ $(${AR} --version | grep version | sed -e 's/.*LLVM version //g' -e 's/[[:blank:]]*$//' -e 's/\.//g' -e 's/svn//' ) -lt 900 ]]; then
195195
set +x
196196
echo
197197
echo "${AR} found but appears to be too old to build the kernel (needs to be at least 9.0.0)."

0 commit comments

Comments
 (0)