Fix in unit_configs.py code generator extraction
Default to target_link inside the loop. Otherwise, if one file contains code_generator: embedded_coder and no other files contain any code_generator we will only return embedded_coder when we should also return the default (TL). Change-Id: I903c115b8674bda8368eafa38cea442d37ef1471
This commit is contained in:
@@ -405,10 +405,9 @@ class UnitConfigs(ProblemLogger):
|
|||||||
for _, config in per_unit_cfg.items():
|
for _, config in per_unit_cfg.items():
|
||||||
if 'code_generator' in config:
|
if 'code_generator' in config:
|
||||||
code_generators.add(config['code_generator'])
|
code_generators.add(config['code_generator'])
|
||||||
if not code_generators:
|
else:
|
||||||
# Default to target_link
|
# Default to target_link
|
||||||
self.info('All code has an old config, defaulting to target_link')
|
code_generators.add(CodeGenerators.target_link)
|
||||||
return {CodeGenerators.target_link}
|
|
||||||
return code_generators
|
return code_generators
|
||||||
|
|
||||||
def _get_base_types_headers(self):
|
def _get_base_types_headers(self):
|
||||||
|
Reference in New Issue
Block a user