3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-05-20 00:49:44 +00:00

Fix mac compile.

This commit is contained in:
nella 2026-04-22 10:17:20 +02:00 committed by nella
parent 94a215b4f7
commit 5d4d94a5dd

View file

@ -88,13 +88,13 @@ inline std::string convert_liberty_files_to_merged_scl(const std::vector<std::st
if (!abc_output.empty()) {
log("ABC conversion output:\n%s", abc_output.c_str());
}
unlink(temp_scl.c_str());
remove(temp_scl.c_str());
return "";
}
if (rename(temp_scl.c_str(), merged_scl.c_str()) != 0) {
log_warning("ABC: Failed to rename %s to %s, falling back to liberty format\n", temp_scl.c_str(), merged_scl.c_str());
unlink(temp_scl.c_str());
remove(temp_scl.c_str());
return "";
}
}