Skip to content

Commit 7b2ff71

Browse files
author
roman_yakovenko
committed
adding ability to configure compiler settings from the web UI
1 parent 336e9b8 commit 7b2ff71

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pygccxml/parser/config.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ def __set_cflags(self, val):
9292
cflags = property( __get_cflags, __set_cflags
9393
, doc="additional flags to pass to compiler" )
9494

95+
def append_cflags( self, val ):
96+
self.__cflags = self.__cflags + ' ' + val
97+
9598
def __ensure_dir_exists( self, dir_path, meaning ):
9699
if os.path.isdir( dir_path ):
97100
return
@@ -232,7 +235,7 @@ def load_gccxml_configuration( configuration, **defaults ):
232235
values = defaults
233236
if not values:
234237
values = {}
235-
238+
236239
if parser.has_section( 'gccxml' ):
237240
for name, value in parser.items( 'gccxml' ):
238241
if value.strip():

0 commit comments

Comments
 (0)