Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compiler version in install.sh #9

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update install.sh
erikrikarddaniel authored Dec 28, 2023

Unverified

This user has not yet uploaded their public signing key.
commit 335c40430bacaebe9395a359405e663179e1ff4d
10 changes: 7 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
@@ -40,13 +40,17 @@ case `uname` in
export DARWIN=0
GCC_VERSION=`gcc -dumpversion`
COMPILER_NAME="gcc $GCC_VERSION"
if [ "${GCC_VERSION%%.*}" -ge 5]; then
echo "GCC_VERSION: $GCC_VERSION, main version: ${GCC_VERSION%%.*}"
if [ "${GCC_VERSION%%.*}" -ge 5 ]; then
echo " version -ge 5"
export USE_AVX=yes
export USE_AVX2=yes
elif [ "$GCC_VERSION" \> "4.6.0" ] || [ "$GCC_VERSION" = "4.6.0" ] || [ "$GCC_VERSION" = "4.6" ] || [ "$GCC_VERSION" -ge 5 ]; then
export USE_AVX=yes
elif [ "$GCC_VERSION" \> "4.7.0" ] || [ "$GCC_VERSION" = "4.7.0" ] || [ "$GCC_VERSION" = "4.7" ] || [ "$GCC_VERSION" -ge 5 ]; then
echo " version > 4.7.0"
export USE_AVX2=yes
elif [ "$GCC_VERSION" \> "4.6.0" ] || [ "$GCC_VERSION" = "4.6.0" ] || [ "$GCC_VERSION" = "4.6" ] || [ "$GCC_VERSION" -ge 5 ]; then
echo " version > 4.6.0"
export USE_AVX=yes
fi
;;
esac