Skip to content

Commit e923bbd

Browse files
author
Cruz Monrreal
authored
Merge pull request #7722 from theotherjimmy/fix-arm-small-lib
Fix Microlib compatibility for -t ARM
2 parents 0346d22 + 7db537a commit e923bbd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/toolchains/arm.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,12 @@ def __init__(self, target, notify=None, macros=None,
6363
if getattr(target, "default_lib", "std") == "small":
6464
if "-DMBED_RTOS_SINGLE_THREAD" not in self.flags['common']:
6565
self.flags['common'].append("-DMBED_RTOS_SINGLE_THREAD")
66+
if "-D__MICROLIB" not in self.flags['common']:
67+
self.flags['common'].append("-D__MICROLIB")
6668
if "--library_type=microlib" not in self.flags['ld']:
6769
self.flags['ld'].append("--library_type=microlib")
70+
if "--library_type=microlib" not in self.flags['common']:
71+
self.flags['common'].append("--library_type=microlib")
6872

6973
if target.core == "Cortex-M0+":
7074
cpu = "Cortex-M0"

0 commit comments

Comments
 (0)