musllinux fix so wheels build can work
This commit is contained in:
parent
991e704899
commit
2b12b74121
@ -253,7 +253,11 @@ 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]);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user