mirror of
https://github.com/amd/blis.git
synced 2026-05-13 10:35:38 +00:00
Fixed configure breakage on OSX clang.
Details: - Accept either 'clang' or 'LLVM' in vendor string when greping for the version number (after determining that we're working with clang). Thanks to Devin Matthews for this fix.
This commit is contained in:
2
configure
vendored
2
configure
vendored
@@ -1422,7 +1422,7 @@ get_compiler_version()
|
||||
cc_version=$(${cc} -dumpversion)
|
||||
# If compiler is AOCC, first grep for clang and then the version number.
|
||||
elif [ "${cc_vendor}" = "clang" ]; then
|
||||
cc_version=$(echo "${vendor_string}" | egrep -o 'clang version [0-9]+\.[0-9]+\.?[0-9]*' | egrep -o '[0-9]+\.[0-9]+\.?[0-9]*')
|
||||
cc_version=$(echo "${vendor_string}" | egrep -o '(clang|LLVM) version [0-9]+\.[0-9]+\.?[0-9]*' | egrep -o '[0-9]+\.[0-9]+\.?[0-9]*')
|
||||
elif [ "${cc_vendor}" = "oneAPI" ]; then
|
||||
# Treat Intel oneAPI's clang as clang, not icc.
|
||||
cc_vendor="clang"
|
||||
|
||||
Reference in New Issue
Block a user