mirror of https://github.com/ARMmbed/mbed-os.git
Revome duplicate optimization flags in IAR export
parent
feeadd6eba
commit
3af9438baf
|
@ -114,7 +114,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)", 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)]
|
flags['c_flags'] = [flag for flag in c_flags if not invalid_flag(flag)]
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue