1
0
mirror of synced 2026-01-13 15:37:16 +00:00

Merge pull request #5600 from YosysHQ/fix_musllinux

musllinux fix so wheels build can work
This commit is contained in:
Miodrag Milanović 2026-01-13 07:08:04 +01:00 committed by GitHub
commit 51b210c93c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -253,11 +253,7 @@ std::optional<AbcProcess> spawn_abc(const char* abc_exe, DeferredLogs &logs) {
char arg1[] = "-s";
char* argv[] = { strdup(abc_exe), arg1, nullptr };
if (0 != posix_spawnp(&result.pid, abc_exe, &file_actions, nullptr, argv, environ)) {
#if defined(__GLIBC__)
logs.log_error("posix_spawnp %s failed (errno=%s)", abc_exe, strerrorname_np(errno));
#else
logs.log_error("posix_spawnp %s failed (errno=%s)", abc_exe, strerror(errno));
#endif
return std::nullopt;
}
free(argv[0]);