Skip to content

Commit d166c9a

Browse files
sarahmarshysg-
authored andcommitted
Removed --no_static_destruction from IAR IDE flags
1 parent 9f85f77 commit d166c9a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tools/export/iar.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,11 @@ def generate(self):
6363

6464
project_data['misc'] = self.flags
6565
# VLA is enabled via template IccAllowVLA
66-
project_data['misc']['c_flags'].remove("--vla")
66+
if "--vla" in project_data['misc']['c_flags']:
67+
project_data['misc']['c_flags'].remove("--vla")
68+
# Static destruction enabled via template
69+
if "--no_static_destruction" in project_data['misc']['cxx_flags']:
70+
project_data['misc']['cxx_flags'].remove("--no_static_destruction")
6771
project_data['misc']['asm_flags'] = list(set(project_data['misc']['asm_flags']))
6872
project_data['build_dir'] = os.path.join(project_data['build_dir'], 'iar_arm')
6973
self.progen_gen_file(project_data)

0 commit comments

Comments
 (0)