Skip to content

Commit

Permalink
Merge pull request #55019 from bruvzg/macos_crash_handler
Browse files Browse the repository at this point in the history
[macOS] Fix crash handler not printing function names on M1 Macs.
  • Loading branch information
akien-mga authored Nov 16, 2021
2 parents 974afa7 + c8037ef commit 7791599
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions platform/osx/crash_handler_osx.mm
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,13 @@ static void handle_crash(int sig) {

args.push_back("-o");
args.push_back(_execpath);
#if defined(__x86_64) || defined(__x86_64__) || defined(__amd64__)
args.push_back("-arch");
args.push_back("x86_64");
#elif defined(__aarch64__)
args.push_back("-arch");
args.push_back("arm64");
#endif
args.push_back("-l");
snprintf(str, 1024, "%p", load_addr);
args.push_back(str);
Expand Down

0 comments on commit 7791599

Please sign in to comment.