Commit 9d34508d authored by Joseph Hemann's avatar Joseph Hemann Committed by Barton Gao
Browse files

uefi-sct/SctPkg: Changed compiler check from greater 5 to equal to 5



gcc compilers versions 5.* also need to be converted from string to integer before testing

Cc: G Edhaya Chandran <Edhaya.Chandran@arm.com>
Cc: Eric Jin <eric.jin@intel.com>
Cc: Irene Park <ipark@nvidia.com>
Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>
Cc: Samer El-Haj-Mahmoud <samer.el-haj-mahmoud@arm.com>
Cc: Stuart Yoder <Stuart.Yoder@arm.com>
Signed-off-by: default avatarJoseph Hemann <Joseph.heman@arm.com>
Reviewed-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-By: G Edhaya Chandran's avatarG Edhaya Chandran <edhaya.chandran@arm.com>
parent 92efde18
......@@ -56,7 +56,7 @@ function get_gcc_version
{
gcc_version=$($1 -dumpversion)
if [ ${gcc_version%%.*} -gt 5 ]; then
if [ ${gcc_version%%.*} -ge 5 ]; then
gcc_version=5
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment