Skip to content

Commit d2a216f

Browse files
committed
iar - remove --vla flag for exporters
The template file already enables VLA as it's for C only. This --vla flag causes conflicts with --cpp flag that is enabled implicitly if C++ is enabled.
1 parent 693a831 commit d2a216f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/export/iar.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ def generate(self):
7272
project_data['tool_specific']['iar'].setdefault("misc", {})
7373
project_data['tool_specific']['iar'].update(tool_specific['iar'])
7474
project_data['tool_specific']['iar']['misc'].update(self.progen_flags)
75+
# VLA is enabled via template IccAllowVLA
76+
project_data['tool_specific']['iar']['misc']['c_flags'].remove("--vla")
7577
project_data['common']['build_dir'] = os.path.join(project_data['common']['build_dir'], 'iar_arm')
7678
self.progen_gen_file('iar_arm', project_data)
7779

0 commit comments

Comments
 (0)