Skip to content

Commit 9155f40

Browse files
author
roman_yakovenko
committed
construct gccxml configuration even if gccxml was not found
1 parent cb7a790 commit 9155f40

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

unittests/autoconfig.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,16 @@
4141
pygccxml.declarations.class_t.USE_DEMANGLED_AS_NAME = True
4242

4343
class cxx_parsers_cfg:
44-
gccxml = None
44+
45+
keywd = { 'working_directory' : data_directory
46+
, 'define_symbols' : [ gccxml_version ]
47+
, 'compiler' : compiler }
48+
4549
if os.path.exists( os.path.join( gccxml_path, 'gccxml' ) ) \
4650
or os.path.exists( os.path.join( gccxml_path, 'gccxml.exe' ) ):
47-
gccxml = pygccxml.parser.gccxml_configuration_t( gccxml_path=gccxml_path
48-
, working_directory=data_directory
49-
, define_symbols=[ gccxml_version ]
50-
, compiler=compiler )
51+
keywd[ 'gccxml_path'] = gccxml_path
52+
gccxml = pygccxml.parser.gccxml_configuration_t( **keywd )
53+
5154
pdb_loader = None
5255
if sys.platform == 'win32':
5356
from pygccxml.msvc import pdb

0 commit comments

Comments
 (0)