Merge pull request #4293 from theotherjimmy/dedupe-iar-flags

Revome duplicate optimization flags in IAR export
pull/4322/head
Martin Kojtal 2017-05-15 16:20:12 +01:00 committed by GitHub
commit 12e6f8a1a8
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ class IAR(Exporter):
template = ["--vla", "--no_static_destruction"]
# Flag invalid if set in template
# Optimizations are also set in template
invalid_flag = lambda x: x in template or re.match("-O(\d|time|n)", x)
invalid_flag = lambda x: x in template or re.match("-O(\d|time|n|hz?)", x)
flags['c_flags'] = [flag for flag in c_flags if not invalid_flag(flag)]
try: