mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 06:03:23 +00:00
added some checks if python is enabled to make sure everything compiles if python is disabled in the makefile
This commit is contained in:
parent
d87c7df27f
commit
95d65971f3
5 changed files with 14 additions and 9 deletions
|
@ -3925,14 +3925,12 @@ RTLIL::Process *RTLIL::Process::clone() const
|
|||
|
||||
return new_proc;
|
||||
}
|
||||
RTLIL::Memory::~Memory()
|
||||
{
|
||||
#ifdef WITH_PYTHON
|
||||
RTLIL::Memory::get_all_memorys()->erase(hashidx_);
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef WITH_PYTHON
|
||||
RTLIL::Memory::~Memory()
|
||||
{
|
||||
RTLIL::Memory::get_all_memorys()->erase(hashidx_);
|
||||
}
|
||||
static std::map<unsigned int, RTLIL::Memory*> *all_memorys = new std::map<unsigned int, RTLIL::Memory*>();
|
||||
std::map<unsigned int, RTLIL::Memory*> *RTLIL::Memory::get_all_memorys(void)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue