-
Notifications
You must be signed in to change notification settings - Fork 452
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
Apple: Remove redundant flags #1256
Conversation
3b8d330
to
75f3ea1
Compare
cc @BlackHoleFox can you take a look at this PR please? |
I decided to go a different direction with the PR, have updated the title and description to reflect that. |
Non-functional change.
The architecture is specified for Clang with the --target option, and both -arch and -m32/-m64 are passed to GCC elsewhere (should probably be changed to -march, but that's a different issue).
It is redundant, the version is already specified in `-target`.
77b23d7
to
f86048a
Compare
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.
Thanks, there's a merge conflict and one review feedback.
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.
Thanks LGTM, I will cut a release and hopefully there's no regression.
Suppose I'm 4 hours late but this looks fine to me 🎉 |
Clang's
--target
argument is enough to specify the architecture, OS and deployment target, so let's remove the redundant-arch
,-m32
/-m64
and-m*-version-min
flags.The first commit is a non-functional refactor, the others do the actual removal. Proper GCC support is still broken, since we specify
-arch
and not-march
, will fix that separately.Fixes #1030.