Skip to content

Commit 2f1f219

Browse files
committed
iar export: fix invalid optmization flag - remove from misc
The exported project uses project file to set optimization, we can provide this via misc options. It was recently changed to Ol and this was not handled in our scripts.
1 parent 3726828 commit 2f1f219

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/export/iar/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def generate(self):
121121
template = ["--vla", "--no_static_destruction"]
122122
# Flag invalid if set in template
123123
# Optimizations are also set in template
124-
invalid_flag = lambda x: x in template or re.match("-O(\d|time|n|hz?)", x)
124+
invalid_flag = lambda x: x in template or re.match("-O(\d|time|n|l|hz?)", x)
125125
flags['c_flags'] = [flag for flag in c_flags if not invalid_flag(flag)]
126126

127127
try:

0 commit comments

Comments
 (0)