mirror of
https://github.com/YosysHQ/yosys
synced 2025-05-05 23:05:47 +00:00
Merge 1759609321
into 9893ed59b7
This commit is contained in:
commit
644097de09
5 changed files with 24 additions and 26 deletions
|
@ -4443,12 +4443,7 @@ AstNode *AstNode::readmem(bool is_readmemh, std::string mem_filename, AstNode *m
|
|||
std::ifstream f;
|
||||
f.open(mem_filename.c_str());
|
||||
if (f.fail()) {
|
||||
#ifdef _WIN32
|
||||
char slash = '\\';
|
||||
#else
|
||||
char slash = '/';
|
||||
#endif
|
||||
std::string path = filename.substr(0, filename.find_last_of(slash)+1);
|
||||
std::string path = parent_from_file_path(filename);
|
||||
f.open(path + mem_filename.c_str());
|
||||
yosys_input_files.insert(path + mem_filename);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue