Build: simpler version# parsing logic (parsing gcc --version failed on my system)

db4
Björn Lindqvist 2015-11-30 23:23:46 +01:00
parent 02c80423ba
commit 7bc0718d34
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ semver_into() {
# issue 1440
gcc_version_ok() {
GCC_VERSION=`gcc --version | head -n1 | rev | cut -d ' ' -f 1 | rev`
GCC_VERSION=`gcc -dumpversion`
local GCC_MAJOR local GCC_MINOR local GCC_PATCH local GCC_SPECIAL
semver_into $GCC_VERSION GCC_MAJOR GCC_MINOR GCC_PATCH GCC_SPECIAL