File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 22
22
23
23
from tools .toolchains import mbedToolchain , TOOLCHAIN_PATHS
24
24
from tools .hooks import hook_tool
25
- from tools .utils import mkdir
25
+ from tools .utils import mkdir , NotSupportedException
26
26
27
27
class ARM (mbedToolchain ):
28
28
LINKER_EXT = '.sct'
@@ -276,6 +276,9 @@ def check_executable():
276
276
def __init__ (self , target , * args , ** kwargs ):
277
277
mbedToolchain .__init__ (self , target , * args , ** kwargs )
278
278
279
+ if "ARM" not in target .supported_toolchains :
280
+ raise NotSupportedException ("ARM compiler support is required for ARMC6 support" )
281
+
279
282
if target .core .lower ().endswith ("fd" ):
280
283
self .flags ['common' ].append ("-mcpu=%s" % target .core .lower ()[:- 2 ])
281
284
self .flags ['ld' ].append ("--cpu=%s" % target .core .lower ()[:- 2 ])
You can’t perform that action at this time.
0 commit comments