Skip to content

Commit 3873ccc

Browse files
committed
Add -D options to iar assembler on export
1 parent 965ffc3 commit 3873ccc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/export/iar.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ def generate(self, progen_build=False):
7878
project_data['tool_specific']['iar']['misc'].update(self.progen_flags)
7979
project_data['tool_specific']['iar']['misc']['asm_flags'].remove(
8080
self.toolchain.get_config_option(self.config_header)[0])
81+
project_data['tool_specific']['iar']['misc']['asm_flags'].extend(
82+
['-D%s' % d for d in self.toolchain.get_symbols()])
8183
# VLA is enabled via template IccAllowVLA
8284
project_data['tool_specific']['iar']['misc']['c_flags'].remove("--vla")
8385
project_data['common']['build_dir'] = os.path.join(project_data['common']['build_dir'], 'iar_arm')

0 commit comments

Comments
 (0)