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.
pull/11696/head
Martin Kojtal 2019-09-17 13:21:22 +01:00 committed by adbridge
parent 7411db1deb
commit 19cb034b13
1 changed files with 1 additions and 1 deletions

View File

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