Merge pull request #7722 from theotherjimmy/fix-arm-small-lib

Fix Microlib compatibility for -t ARM
pull/7749/head
Cruz Monrreal 2018-08-09 15:56:18 -05:00 committed by GitHub
commit e923bbdbfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -63,8 +63,12 @@ class ARM(mbedToolchain):
if getattr(target, "default_lib", "std") == "small":
if "-DMBED_RTOS_SINGLE_THREAD" not in self.flags['common']:
self.flags['common'].append("-DMBED_RTOS_SINGLE_THREAD")
if "-D__MICROLIB" not in self.flags['common']:
self.flags['common'].append("-D__MICROLIB")
if "--library_type=microlib" not in self.flags['ld']:
self.flags['ld'].append("--library_type=microlib")
if "--library_type=microlib" not in self.flags['common']:
self.flags['common'].append("--library_type=microlib")
if target.core == "Cortex-M0+":
cpu = "Cortex-M0"