3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-10-30 19:22:31 +00:00

Merge pull request #137 from ravenexp/master

Embed DATDIR make variable value into yosys binary.
This commit is contained in:
Clifford Wolf 2016-03-28 16:54:23 +02:00
commit 95784437ac
2 changed files with 6 additions and 0 deletions

View file

@ -701,6 +701,11 @@ std::string proc_share_dirname()
proc_share_path = proc_self_path + "../share/yosys/";
if (check_file_exists(proc_share_path, true))
return proc_share_path;
# ifdef YOSYS_DATDIR
proc_share_path = YOSYS_DATDIR "/";
if (check_file_exists(proc_share_path, true))
return proc_share_path;
# endif
# endif
log_error("proc_share_dirname: unable to determine share/ directory!\n");
}