Update progen-style flags with the toolchains include mbed_conf.h

pull/1975/head
Jimmy Brisson 2016-06-16 13:34:54 -05:00
parent 5532fb8697
commit d9b4109143
1 changed files with 3 additions and 0 deletions

View File

@ -49,6 +49,9 @@ class Exporter(object):
def progen_flags(self):
if not hasattr(self, "_progen_flag_cache") :
self._progen_flag_cache = dict([(key + "_flags", value) for key,value in self.flags.iteritems()])
if self.config_header:
self._progen_flag_cache['c_flags'] += self.toolchain.get_config_option(self.config_header)
self._progen_flag_cache['cxx_flags'] += self.toolchain.get_config_option(self.config_header)
return self._progen_flag_cache
def __scan_and_copy(self, src_path, trg_path):