提交 15a99e3d 编写于 作者: B Bodo Möller

Convert gcc version detection (for solaris-usparc-gcc) into a form

better suited for finding what went wrong in case that some compiler
versions create an output we can't parse.
上级 767f68cc
...@@ -333,7 +333,10 @@ esac ...@@ -333,7 +333,10 @@ esac
# gcc < 2.8 does not support -mcpu=ultrasparc # gcc < 2.8 does not support -mcpu=ultrasparc
if [ "$OUT" = solaris-usparc-gcc ] if [ "$OUT" = solaris-usparc-gcc ]
then then
if [ `echo $GCCVER | sed 's/.*version //;s/\.//;s/\..*//'` -lt 28 ] GCCVERMAJOR="`echo $GCCVER | sed 's/.*version \([^.]*\).*/\1/`"
GCCVERMINOR="`echo $GCCVER | sed 's/.*version[^.]*\.\([^.]*\).*/\1/`"
echo "gcc version $GCCVERMAJOR.$GCCVERMINOR.x"
if [ $GCCVERMAJOR$GCCVERMINOR -lt 28 ]
then then
OUT=solaris-usparc-oldgcc OUT=solaris-usparc-oldgcc
fi fi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册