Skip to content

Commit 43ffe3e

Browse files
author
Cruz Monrreal
authored
Merge pull request #8305 from theotherjimmy/fix-microbit-release
Tools: Fix Microbit releases
2 parents 5a47318 + a270249 commit 43ffe3e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/toolchains/arm.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def __init__(self, target, notify=None, macros=None,
6060
raise NotSupportedException(
6161
"this compiler does not support the core %s" % target.core)
6262

63-
if getattr(target, "default_lib", "std") == "small":
63+
if getattr(target, "default_toolchain", "ARM") == "uARM":
6464
if "-DMBED_RTOS_SINGLE_THREAD" not in self.flags['common']:
6565
self.flags['common'].append("-DMBED_RTOS_SINGLE_THREAD")
6666
if "-D__MICROLIB" not in self.flags['common']:
@@ -125,7 +125,7 @@ def version_check(self):
125125
})
126126

127127
def _get_toolchain_labels(self):
128-
if getattr(self.target, "default_lib", "std") == "small":
128+
if getattr(self.target, "default_toolchain", "ARM") == "uARM":
129129
return ["ARM", "ARM_MICRO"]
130130
else:
131131
return ["ARM", "ARM_STD"]
@@ -350,7 +350,7 @@ class ARM_MICRO(ARM):
350350
def __init__(self, target, notify=None, macros=None,
351351
silent=False, extra_verbose=False, build_profile=None,
352352
build_dir=None):
353-
target.default_lib = "small"
353+
target.default_toolchain = "uARM"
354354
ARM.__init__(self, target, notify, macros, build_dir=build_dir,
355355
build_profile=build_profile)
356356
if not set(("ARM", "uARM")).intersection(set(target.supported_toolchains)):

0 commit comments

Comments
 (0)