Fix printing of gccxml version (Waf 1.8 API change)

This commit is contained in:
Vedran Miletić
2015-06-23 14:40:12 +02:00
parent 2006e41baa
commit 4146d77eaf

View File

@@ -278,7 +278,7 @@ int main ()
"gccxml missing")
return
gccxml_version_line = os.popen(gccxml + " --version").readline().strip()
gccxml_version_line = os.popen(gccxml[0] + " --version").readline().strip()
m = re.match( "^GCC-XML version (\d\.\d(\.\d)?)$", gccxml_version_line)
gccxml_version = m.group(1)
gccxml_version_ok = ([int(s) for s in gccxml_version.split('.')] >= [0, 9])