mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-13 14:27:30 -04:00
Make sure the code builds without libdwarf
This commit is contained in:
parent
65b2c5ef69
commit
4e6c48b4d0
@ -97,6 +97,7 @@ void stream_logger::write(level_type level, const std::string& output,
|
||||
folly::symbolizer::StringSymbolizePrinter printer(
|
||||
color_ ? folly::symbolizer::SymbolizePrinter::COLOR : 0);
|
||||
|
||||
#if FOLLY_HAVE_ELF && FOLLY_HAVE_DWARF
|
||||
if (threshold_ == TRACE) {
|
||||
using namespace folly::symbolizer;
|
||||
Symbolizer symbolizer(LocationInfoMode::FULL);
|
||||
@ -105,6 +106,7 @@ void stream_logger::write(level_type level, const std::string& output,
|
||||
symbolizer.symbolize(addresses);
|
||||
printer.println(addresses, 0);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
char lchar = logger::level_char(level);
|
||||
|
Loading…
x
Reference in New Issue
Block a user