File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -167,8 +167,9 @@ def format_flags(self):
167
167
"""Format toolchain flags for Uvision"""
168
168
flags = copy .deepcopy (self .flags )
169
169
# to be preprocessed with armcc
170
- asm_flag_string = '--cpreproc --cpreproc_opts=-D__ASSERT_MSG,' + \
171
- "," .join (flags ['asm_flags' ])
170
+ asm_flag_string = (
171
+ '--cpreproc --cpreproc_opts=-D__ASSERT_MSG,' +
172
+ "," .join (filter (lambda f : f .startswith ("-D" ), flags ['asm_flags' ])))
172
173
flags ['asm_flags' ] = asm_flag_string
173
174
# All non-asm flags are in one template field
174
175
c_flags = list (set (flags ['c_flags' ] + flags ['cxx_flags' ] + flags ['common_flags' ]))
Original file line number Diff line number Diff line change 394
394
<MiscControls >{{asm_flags}}</MiscControls >
395
395
<Define ></Define >
396
396
<Undefine ></Undefine >
397
- <IncludePath ></IncludePath >
397
+ <IncludePath >{{include_paths}} </IncludePath >
398
398
</VariousControls >
399
399
</Aads >
400
400
<LDads >
You can’t perform that action at this time.
0 commit comments