Skip to content

Commit 3c77895

Browse files
committed
configure: Remove clang version checks
We no C++ and an incredibly small amount of C code as part of the build, so there's not really much need for us to strictly check the version of compilers as we're not really stressing anything. LLVM is a pretty huge chunk of C++ but it should be the responsibility of LLVM to ensure that it can build with a particular clang/gcc version, not ours (as this logic changes over time). These version checks seem to basically just by us a regular stream of PRs every six weeks or so when a new version is releases, so they're not really buying us much. As a result, remove them and we can add then back piecemeal perhaps as a blacklist if we really need to.
1 parent 5522e67 commit 3c77895

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

configure

-31
Original file line numberDiff line numberDiff line change
@@ -1040,37 +1040,6 @@ if [ -n "$CFG_ENABLE_CLANG" ]
10401040
then
10411041
case "$CC" in
10421042
(''|*clang)
1043-
CFG_CLANG_REPORTED_VERSION=$($CFG_CC --version | grep version)
1044-
1045-
if echo $CFG_CLANG_REPORTED_VERSION | grep -q "(based on LLVM "; then
1046-
CFG_CLANG_VERSION=$(echo $CFG_CLANG_REPORTED_VERSION | sed 's/.*(based on LLVM \(.*\))/\1/')
1047-
elif echo $CFG_CLANG_REPORTED_VERSION | grep -q "Apple LLVM"; then
1048-
CFG_OSX_CLANG_VERSION=$(echo $CFG_CLANG_REPORTED_VERSION | sed 's/.*version \(.*\) .*/\1/')
1049-
else
1050-
CFG_CLANG_VERSION=$(echo $CFG_CLANG_REPORTED_VERSION | sed 's/.*version \(.*\) .*/\1/')
1051-
fi
1052-
1053-
if [ -n "$CFG_OSX_CLANG_VERSION" ]
1054-
then
1055-
case $CFG_OSX_CLANG_VERSION in
1056-
(7.0* | 7.1* | 7.2* | 7.3* | 8.0*)
1057-
step_msg "found ok version of APPLE CLANG: $CFG_OSX_CLANG_VERSION"
1058-
;;
1059-
(*)
1060-
err "bad APPLE CLANG version: $CFG_OSX_CLANG_VERSION, need >=7.0"
1061-
;;
1062-
esac
1063-
else
1064-
case $CFG_CLANG_VERSION in
1065-
(3.2* | 3.3* | 3.4* | 3.5* | 3.6* | 3.7* | 3.8* | 3.9*)
1066-
step_msg "found ok version of CLANG: $CFG_CLANG_VERSION"
1067-
;;
1068-
(*)
1069-
err "bad CLANG version: $CFG_CLANG_VERSION, need >=3.0svn"
1070-
;;
1071-
esac
1072-
fi
1073-
10741043
if [ -z "$CC" ]
10751044
then
10761045
CFG_CC="clang"

0 commit comments

Comments
 (0)