Skip to content

Commit

Permalink
fix stuff, don't strip
Browse files Browse the repository at this point in the history
  • Loading branch information
widlarizer committed Jun 5, 2024
1 parent 60bf00e commit b85062f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
3 changes: 2 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,13 @@
preConfigure = "make config-clang";
checkTarget = "test";
installPhase = ''
make install PREFIX=$out ABCEXTERNAL=yosys-abc
make install PREFIX=$out ABCEXTERNAL=yosys-abc STRIP=\#
ln -s ${abc-verifier}/bin/abc $out/bin/yosys-abc
'';
buildPhase = ''
make -j$(nproc) ABCEXTERNAL=yosys-abc
'';
dontStrip = true;
meta = with pkgs.lib; {
description = "Yosys Open SYnthesis Suite";
homepage = "https://yosyshq.net/yosys/";
Expand Down
8 changes: 0 additions & 8 deletions kernel/rtlil.cc
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,6 @@ RTLIL::Module::Module()
design = nullptr;
refcount_wires_ = 0;
refcount_cells_ = 0;
TracyAllocN(this, sizeof(RTLIL::Module), "module");

#ifdef WITH_PYTHON
RTLIL::Module::get_all_modules()->insert(std::pair<unsigned int, RTLIL::Module*>(hashidx_, this));
Expand All @@ -947,7 +946,6 @@ RTLIL::Module::~Module()
delete pr.second;
for (auto binding : bindings_)
delete binding;
TracyFree(this);
#ifdef WITH_PYTHON
RTLIL::Module::get_all_modules()->erase(hashidx_);
#endif
Expand Down Expand Up @@ -3460,17 +3458,11 @@ RTLIL::Memory::Memory()
#endif
}

RTLIL::Process::~Process()
{
TracyFree(this);
}

RTLIL::Process::Process() : module(nullptr)
{
static unsigned int hashidx_count = 123456789;
hashidx_count = mkhash_xorshift(hashidx_count);
hashidx_ = hashidx_count;
TracyAllocN(this, sizeof(RTLIL::Process), "process");
}

RTLIL::Cell::Cell() : module(nullptr)
Expand Down

0 comments on commit b85062f

Please sign in to comment.