mirror of https://github.com/ARMmbed/mbed-os.git
uvision - flags consolidation
Remove error for include system path in the exporters. Assembly does not use armcc flags, fails to build, as those are not valid armasm.pull/1912/head
parent
dbc940b9b3
commit
724715002a
|
@ -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' ``)
|
||||
|
@ -67,11 +68,14 @@ class Uvision4(Exporter):
|
|||
|
||||
# get flags from toolchain and apply
|
||||
project_data['tool_specific']['uvision']['misc'] = {}
|
||||
project_data['tool_specific']['uvision']['misc']['asm_flags'] = list(set(self.toolchain.flags['common'] + self.toolchain.flags['asm']))
|
||||
# asm flags only, common are not valid within uvision project, they are armcc specific
|
||||
project_data['tool_specific']['uvision']['misc']['asm_flags'] = list(set(self.toolchain.flags['asm']))
|
||||
# cxx flags included, as uvision have them all in one tab
|
||||
project_data['tool_specific']['uvision']['misc']['c_flags'] = list(set(self.toolchain.flags['common'] + self.toolchain.flags['c'] + self.toolchain.flags['cxx']))
|
||||
# not compatible with c99 flag set in the template
|
||||
project_data['tool_specific']['uvision']['misc']['c_flags'].remove("--c99")
|
||||
# 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']['uvision']['misc']['ld_flags'] = self.toolchain.flags['ld']
|
||||
|
||||
i = 0
|
||||
|
|
|
@ -67,7 +67,8 @@ class Uvision5(Exporter):
|
|||
|
||||
# get flags from toolchain and apply
|
||||
project_data['tool_specific']['uvision5']['misc'] = {}
|
||||
project_data['tool_specific']['uvision5']['misc']['asm_flags'] = list(set(self.toolchain.flags['common'] + self.toolchain.flags['asm']))
|
||||
# asm flags only, common are not valid within uvision project, they are armcc specific
|
||||
project_data['tool_specific']['uvision5']['misc']['asm_flags'] = list(set(self.toolchain.flags['asm']))
|
||||
# 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']))
|
||||
# not compatible with c99 flag set in the template
|
||||
|
|
Loading…
Reference in New Issue