Skip to content

Commit

Permalink
gcc compiler version check
Browse files Browse the repository at this point in the history
Due to bug 23287 of gcc (see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23287)
SparseFeatures.cpp:95 will fail to compile with gcc version < 4.3.x
This bug will never be fixed in earlier branches of 4 thus i've
added the version check for it.
  • Loading branch information
vigsterkr committed Jul 8, 2012
1 parent 7b3ee5a commit 97763bb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/configure
Expand Up @@ -375,6 +375,10 @@ EOF
cc_version="$cc_version, bad"
cc_found=no
;;
4.[0-2]*)
cc_version="$cc_version, bad"
cc_found=no
;;
*)
_cc_major=`echo $cc_version | cut -d '.' -f 1`
_cc_minor=`echo $cc_version | cut -d '.' -f 2`
Expand Down Expand Up @@ -453,6 +457,10 @@ EOF
cxx_version="$cxx_version, bad"
cxx_found=no
;;
4.[0-2]*)
cxx_version="$cxx_version, bad"
cxx_found=no
;;
*)
_cxx_major=`echo $cxx_version | cut -d '.' -f 1`
_cxx_minor=`echo $cxx_version | cut -d '.' -f 2`
Expand Down

0 comments on commit 97763bb

Please sign in to comment.