Skip to content

Commit

Permalink
fix gcc version check, thanks to @erikrikarddaniel
Browse files Browse the repository at this point in the history
  • Loading branch information
amkozlov committed Jan 8, 2024
1 parent 94359c8 commit 68284c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ case `uname` in
export DARWIN=0
GCC_VERSION=`gcc -dumpversion`
COMPILER_NAME="gcc $GCC_VERSION"
if [ "$GCC_VERSION" \> "4.6.0" ] || [ "$GCC_VERSION" = "4.6.0" ] || [ "$GCC_VERSION" = "4.6" ] || [ "$GCC_VERSION" -ge 5 ]; then
if [ "$GCC_VERSION" \> "4.6.0" ] || [ "$GCC_VERSION" = "4.6.0" ] || [ "$GCC_VERSION" = "4.6" ] || [ "${GCC_VERSION%%.*}" -ge 5 ]; then
export USE_AVX=yes
fi
if [ "$GCC_VERSION" \> "4.7.0" ] || [ "$GCC_VERSION" = "4.7.0" ] || [ "$GCC_VERSION" = "4.7" ] || [ "$GCC_VERSION" -ge 5 ]; then
if [ "$GCC_VERSION" \> "4.7.0" ] || [ "$GCC_VERSION" = "4.7.0" ] || [ "$GCC_VERSION" = "4.7" ] || [ "${GCC_VERSION%%.*}" -ge 5 ]; then
export USE_AVX2=yes
fi
;;
Expand Down

0 comments on commit 68284c2

Please sign in to comment.