Skip to content

Commit

Permalink
utils/crash_handler: Fix preprocessor test on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
anlambert committed Oct 17, 2024
1 parent af20046 commit c18e840
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utils/crash_handler/StackWalker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,10 +281,10 @@ void StackWalkerGCC::printCallStack(std::ostream &os, uint maxDepth) {
int64_t exOffset = getOffsetInExecutable(array[i]);
std::ostringstream oss;
oss << "atos -o " << dsoName;
#ifdef X86_64
oss << " -arch x86_64 ";
#else
#ifdef __arm64__
oss << " -arch arm64 ";
#else
oss << " -arch x86_64 ";
#endif
oss << "0x" << std::hex << exOffset;
std::string atos = pOpen(oss.str());
Expand Down

0 comments on commit c18e840

Please sign in to comment.