[pygccxml-commit] SF.net SVN: pygccxml:[1472] pygccxml_dev
Brought to you by:
mbaas,
roman_yakovenko
From: <rom...@us...> - 2008-12-17 09:05:48
|
Revision: 1472 http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1472&view=rev Author: roman_yakovenko Date: 2008-12-17 09:05:44 +0000 (Wed, 17 Dec 2008) Log Message: ----------- functionality, which returns compiler name as gccxml expects was added Modified Paths: -------------- pygccxml_dev/pygccxml/utils/__init__.py pygccxml_dev/unittests/autoconfig.py Modified: pygccxml_dev/pygccxml/utils/__init__.py =================================================================== --- pygccxml_dev/pygccxml/utils/__init__.py 2008-12-16 22:16:38 UTC (rev 1471) +++ pygccxml_dev/pygccxml/utils/__init__.py 2008-12-17 09:05:44 UTC (rev 1472) @@ -165,4 +165,12 @@ from distutils import msvccompiler return ( 'msvc', str( msvccompiler.get_build_version() ) ) + @staticmethod + def get_gccxml_compiler(): + compiler = native_compiler.get_version() + if not compiler: + return None + else: + return compiler[0] + compiler[1].replace( '.', '' ) + Modified: pygccxml_dev/unittests/autoconfig.py =================================================================== --- pygccxml_dev/unittests/autoconfig.py 2008-12-16 22:16:38 UTC (rev 1471) +++ pygccxml_dev/unittests/autoconfig.py 2008-12-17 09:05:44 UTC (rev 1472) @@ -27,9 +27,7 @@ import pygccxml print 'unittests will run on DEVELOPMENT version' -compiler = pygccxml.utils.native_compiler.get_version() -if compiler: - compiler = compiler[0] + compiler[1].replace( '.', '' ) +compiler = pygccxml.utils.native_compiler.get_gccxml_compiler() print 'GCCXML configured to simulate compiler ', compiler This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |