mirror of https://github.com/ARMmbed/mbed-os.git
Fixed incorrect clean_flags method and float-abi linker option for CCES exporter.
parent
5ce26b1306
commit
daf4c78ad4
|
@ -108,14 +108,14 @@ class CCES(Exporter):
|
||||||
return CCES.format_path(path, "PARENT-1-PROJECT_LOC/")
|
return CCES.format_path(path, "PARENT-1-PROJECT_LOC/")
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def clean_flags(container, flags):
|
def clean_flags(container, flags_to_remove):
|
||||||
"""
|
"""
|
||||||
Some flags are handled by CCES already, so there's no need
|
Some flags are handled by CCES already, so there's no need
|
||||||
to include them twice.
|
to include them twice.
|
||||||
"""
|
"""
|
||||||
for flag in container:
|
for flag in flags_to_remove:
|
||||||
if flag in flags:
|
if flag in container:
|
||||||
flags.remove(flag)
|
container.remove(flag)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def parse_flags(flags, options, booleans):
|
def parse_flags(flags, options, booleans):
|
||||||
|
|
|
@ -91,9 +91,9 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{% if float_abi %}
|
{% if float_abi %}
|
||||||
"-mfloat-abi=${value}" : {
|
"arm.toolchain.gcc.cpp.linker.option.fpu.abi" : {
|
||||||
"type" : "command",
|
"type" : "baseId",
|
||||||
"value" : "{{ float_abi }}"
|
"value" : "arm.toolchain.gcc.c.linker.option.fpu.abi.{{ float_abi }}"
|
||||||
},
|
},
|
||||||
{% endif %}
|
{% endif %}
|
||||||
"-T" : {
|
"-T" : {
|
||||||
|
|
Loading…
Reference in New Issue