Skip to content

Commit 23eadc7

Browse files
authored
Merge pull request #1935 from ohagendorf/uvision5_correction
[uviosn5] some fixes for PR #1933
2 parents 264a4fa + e829d8b commit 23eadc7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/export/uvision5.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
from tools.export.exporters import Exporter
2121
from tools.targets import TARGET_MAP, TARGET_NAMES
22+
from tools.settings import ARM_INC
2223

2324
# If you wish to add a new target, add it to project_generator_definitions, and then
2425
# define progen_target name in the target class (`` self.progen_target = 'my_target_name' ``)
@@ -72,11 +73,11 @@ def generate(self):
7273
# cxx flags included, as uvision have them all in one tab
7374
project_data['tool_specific']['uvision5']['misc']['c_flags'] = list(set(self.toolchain.flags['common'] + self.toolchain.flags['c'] + self.toolchain.flags['cxx']))
7475
# ARM_INC is by default as system inclusion, not required for exported project
75-
project_data['tool_specific']['uvision']['misc']['c_flags'].remove("-I \""+ARM_INC+"\"")
76+
project_data['tool_specific']['uvision5']['misc']['c_flags'].remove("-I \""+ARM_INC+"\"")
7677
# not compatible with c99 flag set in the template
7778
project_data['tool_specific']['uvision5']['misc']['c_flags'].remove("--c99")
7879
# cpp is not required as it's implicit for cpp files
79-
project_data['tool_specific']['uvision']['misc']['c_flags'].remove("--cpp")
80+
project_data['tool_specific']['uvision5']['misc']['c_flags'].remove("--cpp")
8081
project_data['tool_specific']['uvision5']['misc']['ld_flags'] = self.toolchain.flags['ld']
8182

8283
i = 0

0 commit comments

Comments
 (0)