mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #1935 from ohagendorf/uvision5_correction
[uviosn5] some fixes for PR #1933pull/1938/head
commit
23eadc7944
|
@ -19,6 +19,7 @@ from project_generator_definitions.definitions import ProGenDef
|
|||
|
||||
from tools.export.exporters import Exporter
|
||||
from tools.targets import TARGET_MAP, TARGET_NAMES
|
||||
from tools.settings import ARM_INC
|
||||
|
||||
# If you wish to add a new target, add it to project_generator_definitions, and then
|
||||
# define progen_target name in the target class (`` self.progen_target = 'my_target_name' ``)
|
||||
|
@ -72,11 +73,11 @@ class Uvision5(Exporter):
|
|||
# cxx flags included, as uvision have them all in one tab
|
||||
project_data['tool_specific']['uvision5']['misc']['c_flags'] = list(set(self.toolchain.flags['common'] + self.toolchain.flags['c'] + self.toolchain.flags['cxx']))
|
||||
# ARM_INC is by default as system inclusion, not required for exported project
|
||||
project_data['tool_specific']['uvision']['misc']['c_flags'].remove("-I \""+ARM_INC+"\"")
|
||||
project_data['tool_specific']['uvision5']['misc']['c_flags'].remove("-I \""+ARM_INC+"\"")
|
||||
# not compatible with c99 flag set in the template
|
||||
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']['uvision']['misc']['c_flags'].remove("--cpp")
|
||||
project_data['tool_specific']['uvision5']['misc']['c_flags'].remove("--cpp")
|
||||
project_data['tool_specific']['uvision5']['misc']['ld_flags'] = self.toolchain.flags['ld']
|
||||
|
||||
i = 0
|
||||
|
|
Loading…
Reference in New Issue