3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-22 08:35:32 +00:00

Fix GHDL support

This commit is contained in:
Akash Levy 2024-09-27 03:14:15 -07:00
parent 9f4d385e35
commit f6d577aed1

View file

@ -3758,7 +3758,11 @@ struct VerificPass : public Pass {
exe_path[length] = '\0';
// Get dirname of exe path
std::string ghdl_path = std::string(FileSystem::Dirname(exe_path)) + "/ghdl";
const char *dirname = FileSystem::Dirname(exe_path).c_str();
std::string ghdl_path = std::string(dirname) + "/bin/ghdl";
log("Exe path: %s\n", exe_path);
log("Exe dirname: %s\n", dirname);
log("GHDL path: %s\n", ghdl_path.c_str());
// Check if GHDL binary exists, else use system path
if (!FileSystem::PathExists(ghdl_path.c_str())) ghdl_path = "ghdl";