fixed no error on missing driver

This commit is contained in:
Sven Vogel 2024-07-18 23:09:12 +02:00
parent 09b3b86180
commit b08b04ebf9
2 changed files with 3 additions and 3 deletions

View File

@ -95,10 +95,10 @@ TargetLinkConfig* lld_create_link_config(__attribute__((unused)) const Target* t
BackendError lld_link_target(TargetLinkConfig* config) {
if (link_run(config)) {
return new_backend_impl_error(Implementation, NULL, "linking failed");
return SUCCESS;
}
return SUCCESS;
return new_backend_impl_error(Implementation, NULL, "linking failed");
}
void lld_delete_link_config(TargetLinkConfig* config) {

View File

@ -260,7 +260,7 @@ BackendError parse_module(const Module* module, const TargetConfig* config) {
TargetLinkConfig* link_config = lld_create_link_config(&target, config, module);
if (link_config != NULL) {
lld_link_target(link_config);
err = lld_link_target(link_config);
lld_delete_link_config(link_config);
} else {