uvision4/5 - remove no-vla for exporters

IDE has C/C++ tab, thus this only cxx flag would be applied for
C files.
pull/2041/head
0xc0170 2016-06-28 13:58:11 +02:00
parent e1890c9284
commit f44ff94fc3
2 changed files with 4 additions and 0 deletions

View File

@ -80,6 +80,8 @@ class Uvision4(Exporter):
project_data['tool_specific']['uvision']['misc']['c_flags'].remove("-I \""+ARM_INC+"\"")
# cpp is not required as it's implicit for cpp files
project_data['tool_specific']['uvision']['misc']['c_flags'].remove("--cpp")
# we want no-vla for only cxx, but it's also applied for C in IDE, thus we remove it
project_data['tool_specific']['uvision']['misc']['c_flags'].remove("--no_vla")
project_data['tool_specific']['uvision']['misc']['ld_flags'] = self.progen_flags['ld_flags']
i = 0

View File

@ -80,6 +80,8 @@ class Uvision5(Exporter):
project_data['tool_specific']['uvision5']['misc']['c_flags'].remove("--c99")
# cpp is not required as it's implicit for cpp files
project_data['tool_specific']['uvision5']['misc']['c_flags'].remove("--cpp")
# we want no-vla for only cxx, but it's also applied for C in IDE, thus we remove it
project_data['tool_specific']['uvision5']['misc']['c_flags'].remove("--no_vla")
project_data['tool_specific']['uvision5']['misc']['ld_flags'] = self.progen_flags['ld_flags']
i = 0