3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-05-12 18:24:44 +00:00

Merge branch 'YosysHQ:main' into main

This commit is contained in:
Akash Levy 2025-02-26 09:51:44 -08:00 committed by GitHub
commit 9d3b7f7474
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 1019 additions and 10 deletions

View file

@ -416,8 +416,11 @@ std::string make_temp_dir(std::string template_str)
# endif
char *p = strdup(template_str.c_str());
log_assert(p);
char *res = mkdtemp(p);
log_assert(res != NULL);
if (!res)
log_error("mkdtemp failed for '%s': %s [Error %d]\n",
p, strerror(errno), errno);
template_str = p;
free(p);