mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #11498 from 0xc0170/fix_iar
iar export: fix invalid optmization flag - remove from miscpull/11522/head
commit
030e3e1f72
|
@ -121,7 +121,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|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)]
|
||||
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue