Add -D options to iar assembler on export

pull/2303/head
Jimmy Brisson 2016-08-02 11:39:46 -05:00
parent 965ffc3e28
commit 3873ccc232
1 changed files with 2 additions and 0 deletions

View File

@ -78,6 +78,8 @@ class IAREmbeddedWorkbench(Exporter):
project_data['tool_specific']['iar']['misc'].update(self.progen_flags)
project_data['tool_specific']['iar']['misc']['asm_flags'].remove(
self.toolchain.get_config_option(self.config_header)[0])
project_data['tool_specific']['iar']['misc']['asm_flags'].extend(
['-D%s' % d for d in self.toolchain.get_symbols()])
# VLA is enabled via template IccAllowVLA
project_data['tool_specific']['iar']['misc']['c_flags'].remove("--vla")
project_data['common']['build_dir'] = os.path.join(project_data['common']['build_dir'], 'iar_arm')