-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[macOS] Fix crash handler not printing function names on M1 Macs. #55019
Conversation
args.push_back("x86_64"); | ||
#elif defined(__aarch64__) | ||
args.push_back("arm64"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That shouldn't happen, but in theory of new arches were added then the call would become invalid as there's no #else
condition. Maybe it should raise an error in #else
?
Or is it mandatory to set the arch, or can we get away with just letting it infer things?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved args.push_back("-arch");
into the ifdef, it's an optional flag. This way it should try to infer architecture if we do not know it.
f27d4ef
to
c8037ef
Compare
Thanks! |
This fix is relevant for 3.x as well. |
Cherry-picked for 3.5. |
Cherry-picked for 3.4.1. |
Fixes incorrect architecture name used to call
atos
.