From 2f1f219d7392307b21cabc93fc8d9b33a5ef5abe Mon Sep 17 00:00:00 2001 From: Martin Kojtal Date: Tue, 17 Sep 2019 13:21:22 +0100 Subject: [PATCH] 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. --- tools/export/iar/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/export/iar/__init__.py b/tools/export/iar/__init__.py index 02b82b0087..5090b5eba5 100644 --- a/tools/export/iar/__init__.py +++ b/tools/export/iar/__init__.py @@ -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: