Skip to content

Commit 030e3e1

Browse files
authored
Merge pull request #11498 from 0xc0170/fix_iar
iar export: fix invalid optmization flag - remove from misc
2 parents 83fca60 + 2f1f219 commit 030e3e1

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)