Skip to content

Commit a6c85ee

Browse files
committed
Add asm defines to template
1 parent 0924d66 commit a6c85ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/export/uvision/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,8 @@ def format_flags(self):
175175
flags = copy.deepcopy(self.flags)
176176
asm_flag_string = (
177177
'--cpreproc --cpreproc_opts=-D__ASSERT_MSG,' +
178-
",".join(filter(lambda f: f.startswith("-D"), flags['asm_flags'])))
178+
",".join("-D{}".format(s) for s in
179+
self.toolchain.get_symbols(for_asm=True)))
179180
flags['asm_flags'] = asm_flag_string
180181

181182
config_header = self.config_header_ref

0 commit comments

Comments
 (0)