} | } | ||||
return 1; | return 1; | ||||
}, | }, | ||||
[](e_system_error_exc err, | |||||
e_loading_toolchain, | |||||
e_toolchain_file* tc_file, | |||||
e_toolchain_builtin*) { | |||||
[](e_system_error_exc err, e_loading_toolchain, e_toolchain_file* tc_file) { | |||||
dds_log(error, "Failed to load toolchain: .br.yellow[{}]"_styled, err.message); | dds_log(error, "Failed to load toolchain: .br.yellow[{}]"_styled, err.message); | ||||
if (tc_file) { | if (tc_file) { | ||||
dds_log(error, " (While loading from file [.bold.red[{}]])"_styled, tc_file->value); | dds_log(error, " (While loading from file [.bold.red[{}]])"_styled, tc_file->value); |
} | } | ||||
// Convert the given string to a toolchain | // Convert the given string to a toolchain | ||||
auto& tc_str = *toolchain; | auto& tc_str = *toolchain; | ||||
DDS_E_SCOPE(e_toolchain_name{tc_str}); | |||||
DDS_E_SCOPE(e_loading_toolchain{tc_str}); | DDS_E_SCOPE(e_loading_toolchain{tc_str}); | ||||
if (tc_str.starts_with(":")) { | if (tc_str.starts_with(":")) { | ||||
DDS_E_SCOPE(e_toolchain_builtin{tc_str}); | DDS_E_SCOPE(e_toolchain_builtin{tc_str}); |
std::string value; | std::string value; | ||||
}; | }; | ||||
struct e_toolchain_name { | |||||
std::string value; | |||||
}; | |||||
struct e_toolchain_file { | struct e_toolchain_file { | ||||
std::string value; | std::string value; | ||||
}; | }; |