Skip to content

Commit d9b4109

Browse files
committed
Update progen-style flags with the toolchains include mbed_conf.h
1 parent 5532fb8 commit d9b4109

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/export/exporters.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ def flags(self):
4949
def progen_flags(self):
5050
if not hasattr(self, "_progen_flag_cache") :
5151
self._progen_flag_cache = dict([(key + "_flags", value) for key,value in self.flags.iteritems()])
52+
if self.config_header:
53+
self._progen_flag_cache['c_flags'] += self.toolchain.get_config_option(self.config_header)
54+
self._progen_flag_cache['cxx_flags'] += self.toolchain.get_config_option(self.config_header)
5255
return self._progen_flag_cache
5356

5457
def __scan_and_copy(self, src_path, trg_path):

0 commit comments

Comments
 (0)