Skip to content

Commit cca1455

Browse files
committed
Update progen-style flags with the toolchains include mbed_conf.h
1 parent db6729c commit cca1455

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
@@ -48,6 +48,9 @@ def flags(self):
4848
def progen_flags(self):
4949
if not hasattr(self, "_progen_flag_cache") :
5050
self._progen_flag_cache = dict([(key + "_flags", value) for key,value in self.flags.iteritems()])
51+
if self.config_header:
52+
self._progen_flag_cache['c_flags'] += self.toolchain.get_config_option(self.config_header)
53+
self._progen_flag_cache['cxx_flags'] += self.toolchain.get_config_option(self.config_header)
5154
return self._progen_flag_cache
5255

5356
def __scan_and_copy(self, src_path, trg_path):

0 commit comments

Comments
 (0)