From 9e93ce09329a2e2fe7e11450fc695995cd2d16c1 Mon Sep 17 00:00:00 2001 From: Peter Edwards Date: Wed, 8 May 2024 21:59:01 +0100 Subject: [PATCH] fix no-python build --- canal.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/canal.cc b/canal.cc index 3525041..10680e5 100644 --- a/canal.cc +++ b/canal.cc @@ -268,7 +268,9 @@ mainExcept(int argc, char *argv[]) AddressRanges searchaddrs; std::string findstr; int symOffset = -1; +#ifdef WITH_PYTHON bool doPython = false; +#endif Flags flags; @@ -323,11 +325,13 @@ mainExcept(int argc, char *argv[]) auto process = Procman::Process::load(exec, argv[optind], PstackOptions(), imageCache); +#ifdef WITH_PYTHON PyInterpInfo info; if (doPython) { info = getPyInterpInfo(*process); py = make_unique>(*process, std::cout, info); } +#endif if (searchaddrs.size()) { std::clog << "finding references to " << dec << searchaddrs.size() << " addresses\n"; for (auto &addr : searchaddrs)