From 4bc70c0c5f7a181776d32de796bb011f7ddc3933 Mon Sep 17 00:00:00 2001 From: Sarah Marsh Date: Fri, 23 Sep 2016 14:16:51 -0500 Subject: [PATCH] Remove static destruction flag --- tools/export/iar/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/export/iar/__init__.py b/tools/export/iar/__init__.py index 067de8a234..c18b0a3a86 100644 --- a/tools/export/iar/__init__.py +++ b/tools/export/iar/__init__.py @@ -97,7 +97,10 @@ class IAR(Exporter): flags['c_flags'] = list(set(flags['common_flags'] + flags['c_flags'] + flags['cxx_flags'])) - flags['c_flags'].remove('--vla') + if '--vla' in flags['c_flags']: + flags['c_flags'].remove('--vla') + if '--no_static_destruction' in flags['c_flags']: + flags['c_flags'].remove('--no_static_destruction') ctx = { 'name': self.project_name, 'groups': self.iar_groups(self.format_src(srcs)),