@@ -988,7 +988,6 @@ def build_mbed_libs(target, toolchain_name, clean=False, macros=None,
988
988
#then set the default_toolchain to uARM to link AC6 microlib.
989
989
if (selected_toolchain_name == "ARMC6" and toolchain_name == "uARM" ):
990
990
target .default_toolchain = "uARM"
991
- toolchain_name = selected_toolchain_name
992
991
993
992
if report is not None :
994
993
start = time ()
@@ -1003,7 +1002,7 @@ def build_mbed_libs(target, toolchain_name, clean=False, macros=None,
1003
1002
prep_properties (
1004
1003
properties , target .name , toolchain_name , vendor_label )
1005
1004
1006
- if toolchain_name not in target . supported_toolchains :
1005
+ if not target_supports_toolchain ( target , toolchain_name ) :
1007
1006
supported_toolchains_text = ", " .join (target .supported_toolchains )
1008
1007
notify .info ('The target {} does not support the toolchain {}' .format (
1009
1008
target .name ,
@@ -1023,14 +1022,16 @@ def build_mbed_libs(target, toolchain_name, clean=False, macros=None,
1023
1022
1024
1023
try :
1025
1024
# Source and Build Paths
1025
+
1026
1026
build_toolchain = join (
1027
- MBED_LIBRARIES , mbed2_obj_path (target .name , toolchain_name ))
1027
+ MBED_LIBRARIES , mbed2_obj_path (target .name , selected_toolchain_name )
1028
+ )
1028
1029
mkdir (build_toolchain )
1029
1030
1030
1031
tmp_path = join (
1031
1032
MBED_LIBRARIES ,
1032
1033
'.temp' ,
1033
- mbed2_obj_path (target .name , toolchain_name )
1034
+ mbed2_obj_path (target .name , selected_toolchain_name )
1034
1035
)
1035
1036
mkdir (tmp_path )
1036
1037
0 commit comments