Skip to content

Commit 12e6f8a

Browse files
authored
Merge pull request #4293 from theotherjimmy/dedupe-iar-flags
Revome duplicate optimization flags in IAR export
2 parents 1b94d5a + 6b8dd7b commit 12e6f8a

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
@@ -114,7 +114,7 @@ def generate(self):
114114
template = ["--vla", "--no_static_destruction"]
115115
# Flag invalid if set in template
116116
# Optimizations are also set in template
117-
invalid_flag = lambda x: x in template or re.match("-O(\d|time|n)", x)
117+
invalid_flag = lambda x: x in template or re.match("-O(\d|time|n|hz?)", x)
118118
flags['c_flags'] = [flag for flag in c_flags if not invalid_flag(flag)]
119119

120120
try:

0 commit comments

Comments
 (0)