Removed --no_static_destruction from IAR IDE flags

pull/2646/merge
Sarah Marsh 2016-09-23 13:48:20 -05:00 committed by Sam Grove
parent 9f85f77001
commit d166c9a1bf
1 changed files with 5 additions and 1 deletions

View File

@ -63,7 +63,11 @@ class IAREmbeddedWorkbench(Exporter):
project_data['misc'] = self.flags
# VLA is enabled via template IccAllowVLA
if "--vla" in project_data['misc']['c_flags']:
project_data['misc']['c_flags'].remove("--vla")
# Static destruction enabled via template
if "--no_static_destruction" in project_data['misc']['cxx_flags']:
project_data['misc']['cxx_flags'].remove("--no_static_destruction")
project_data['misc']['asm_flags'] = list(set(project_data['misc']['asm_flags']))
project_data['build_dir'] = os.path.join(project_data['build_dir'], 'iar_arm')
self.progen_gen_file(project_data)