Skip to content

Commit 51b13c3

Browse files
committed
-Oh flag removed from IAR. Optimization set in GUI.
1 parent fd86fef commit 51b13c3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/export/iar/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ def generate(self):
101101
flags['c_flags'].remove('--vla')
102102
if '--no_static_destruction' in flags['c_flags']:
103103
flags['c_flags'].remove('--no_static_destruction')
104+
if '-Oh' in flags['c_flags']:
105+
flags['c_flags'].remove('-Oh')
104106
ctx = {
105107
'name': self.project_name,
106108
'groups': self.iar_groups(self.format_src(srcs)),

0 commit comments

Comments
 (0)