Skip to content

Commit 887d293

Browse files
committed
Check for support in ARMC6
1 parent d72f6db commit 887d293

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/toolchains/arm.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
from tools.toolchains import mbedToolchain, TOOLCHAIN_PATHS
2424
from tools.hooks import hook_tool
25-
from tools.utils import mkdir
25+
from tools.utils import mkdir, NotSupportedException
2626

2727
class ARM(mbedToolchain):
2828
LINKER_EXT = '.sct'
@@ -276,6 +276,9 @@ def check_executable():
276276
def __init__(self, target, *args, **kwargs):
277277
mbedToolchain.__init__(self, target, *args, **kwargs)
278278

279+
if "ARM" not in target.supported_toolchains:
280+
raise NotSupportedException("ARM compiler support is required for ARMC6 support")
281+
279282
if target.core.lower().endswith("fd"):
280283
self.flags['common'].append("-mcpu=%s" % target.core.lower()[:-2])
281284
self.flags['ld'].append("--cpu=%s" % target.core.lower()[:-2])

0 commit comments

Comments
 (0)