From 51b13c3ca791db4ee1bafdeeaf75702a9cf31f6a Mon Sep 17 00:00:00 2001 From: Sarah Marsh Date: Tue, 4 Oct 2016 15:07:41 -0500 Subject: [PATCH] -Oh flag removed from IAR. Optimization set in GUI. --- tools/export/iar/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/export/iar/__init__.py b/tools/export/iar/__init__.py index 0ee869986d..0b207f0310 100644 --- a/tools/export/iar/__init__.py +++ b/tools/export/iar/__init__.py @@ -101,6 +101,8 @@ class IAR(Exporter): flags['c_flags'].remove('--vla') if '--no_static_destruction' in flags['c_flags']: flags['c_flags'].remove('--no_static_destruction') + if '-Oh' in flags['c_flags']: + flags['c_flags'].remove('-Oh') ctx = { 'name': self.project_name, 'groups': self.iar_groups(self.format_src(srcs)),