Skip to content

Commit f44ff94

Browse files
committed
uvision4/5 - remove no-vla for exporters
IDE has C/C++ tab, thus this only cxx flag would be applied for C files.
1 parent e1890c9 commit f44ff94

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

tools/export/uvision4.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ def generate(self):
8080
project_data['tool_specific']['uvision']['misc']['c_flags'].remove("-I \""+ARM_INC+"\"")
8181
# cpp is not required as it's implicit for cpp files
8282
project_data['tool_specific']['uvision']['misc']['c_flags'].remove("--cpp")
83+
# we want no-vla for only cxx, but it's also applied for C in IDE, thus we remove it
84+
project_data['tool_specific']['uvision']['misc']['c_flags'].remove("--no_vla")
8385
project_data['tool_specific']['uvision']['misc']['ld_flags'] = self.progen_flags['ld_flags']
8486

8587
i = 0

tools/export/uvision5.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ def generate(self):
8080
project_data['tool_specific']['uvision5']['misc']['c_flags'].remove("--c99")
8181
# cpp is not required as it's implicit for cpp files
8282
project_data['tool_specific']['uvision5']['misc']['c_flags'].remove("--cpp")
83+
# we want no-vla for only cxx, but it's also applied for C in IDE, thus we remove it
84+
project_data['tool_specific']['uvision5']['misc']['c_flags'].remove("--no_vla")
8385
project_data['tool_specific']['uvision5']['misc']['ld_flags'] = self.progen_flags['ld_flags']
8486

8587
i = 0

0 commit comments

Comments
 (0)