Skip to content

Commit

Permalink
Update INSTALL.py
Browse files Browse the repository at this point in the history
Update gcc version check to support more output formats
  • Loading branch information
skoren committed Jun 5, 2015
1 parent f795df1 commit 83896a1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion INSTALL.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ def copyPerlLib(pathToCopy, dest):
try:
GCC_VERSION=float(utils.getCommandOutput("gcc --version|grep gcc|awk '{print $3}' |awk -F \".\" '{print $1\".\"$2}'", False))
except:
print "Warning: cannot determine GCC version"
try:
GCC_VERSION=float(utils.getCommandOutput("gcc --version|grep gcc|awk '{print $4}' |awk -F \".\" '{print $1\".\"$2}'", False))
except:
print "Warning: cannot determine GCC version"

OSTYPE="Linux"
OSVERSION="1"
Expand Down

0 comments on commit 83896a1

Please sign in to comment.