mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-18 22:59:03 +00:00
This patch adds support for defining the YOSYS_DATDIR location at runtime instead of at compile time. This is helpful in build systems like bazel which do not have stable locations for binaries or directories during the compilation phase.
This change should be backwards compatible with the existing behavior.
This commit is contained in:
parent
e2a39bb1e7
commit
53eae2f555
|
@ -848,6 +848,8 @@ std::string proc_share_dirname()
|
|||
if (check_file_exists(proc_share_path, true))
|
||||
return proc_share_path;
|
||||
# ifdef YOSYS_DATDIR
|
||||
if (std::getenv("YOSYS_DATDIR"))
|
||||
return std::getenv("YOSYS_DATDIR");
|
||||
proc_share_path = YOSYS_DATDIR "/";
|
||||
if (check_file_exists(proc_share_path, true))
|
||||
return proc_share_path;
|
||||
|
|
Loading…
Reference in a new issue