Skip to content

Commit

Permalink
Merge pull request #3916 from alainmarcel/alainmarcel-patch-1
Browse files Browse the repository at this point in the history
hier path selection for typespec
  • Loading branch information
alaindargelas authored Oct 27, 2023
2 parents eb3e943 + 31159c9 commit 8adf889
Show file tree
Hide file tree
Showing 6 changed files with 2,743 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/CommandLine/CommandLineParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -759,10 +759,10 @@ bool CommandLineParser::parseCommandLine(int32_t argc, const char** argv) {
// When surelog is embedded as a plugin in yosys, the program name is
// "read_systemverilog", which breaks the -lowmem option
pname = "surelog";
std::filesystem::path programPath = fileSystem->getProgramPath();
std::filesystem::path programPath = FileSystem::getProgramPath();
programPath = programPath.parent_path();
programPath = programPath / pname;
m_programId = fileSystem->toPathId(programPath.c_str(), m_symbolTable);
m_programId = fileSystem->toPathId(programPath.string(), m_symbolTable);
} else {
m_programId = fileSystem->getProgramFile(pname, m_symbolTable);
}
Expand Down
Loading

0 comments on commit 8adf889

Please sign in to comment.