mirror of https://github.com/YosysHQ/yosys.git
Merge pull request #5542 from YosysHQ/krys/posix_spawnp
Calling `abc` fails when `ABCEXTERNAL` relies on path expansion
This commit is contained in:
commit
b201bf2cf3
|
|
@ -252,8 +252,8 @@ std::optional<AbcProcess> spawn_abc(const char* abc_exe, DeferredLogs &logs) {
|
||||||
|
|
||||||
char arg1[] = "-s";
|
char arg1[] = "-s";
|
||||||
char* argv[] = { strdup(abc_exe), arg1, nullptr };
|
char* argv[] = { strdup(abc_exe), arg1, nullptr };
|
||||||
if (0 != posix_spawn(&result.pid, abc_exe, &file_actions, nullptr, argv, environ)) {
|
if (0 != posix_spawnp(&result.pid, abc_exe, &file_actions, nullptr, argv, environ)) {
|
||||||
logs.log_error("posix_spawn %s failed", abc_exe);
|
logs.log_error("posix_spawnp %s failed", abc_exe);
|
||||||
return std::nullopt;
|
return std::nullopt;
|
||||||
}
|
}
|
||||||
free(argv[0]);
|
free(argv[0]);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue