3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-10-09 17:31:59 +00:00
This commit is contained in:
Ethan Mahintorabi 2025-10-07 07:58:04 +02:00 committed by GitHub
commit ef96617009
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -576,6 +576,8 @@ void init_share_dirname()
return; return;
} }
# ifdef YOSYS_DATDIR # ifdef YOSYS_DATDIR
if (std::getenv("YOSYS_DATDIR"))
return std::getenv("YOSYS_DATDIR");
proc_share_path = YOSYS_DATDIR "/"; proc_share_path = YOSYS_DATDIR "/";
if (check_directory_exists(proc_share_path, true)) { if (check_directory_exists(proc_share_path, true)) {
yosys_share_dirname = proc_share_path; yosys_share_dirname = proc_share_path;