-
Notifications
You must be signed in to change notification settings - Fork 68
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
Allow duplicate -arch in ARCHFLAGS #531
Allow duplicate -arch in ARCHFLAGS #531
Conversation
We came across a situation where the build added duplicate archs in ARCHFLAGS, e.g. `-arch arm64 -arch arm64`. These usually pass through compilers etc without problem, but mesonpy was raising in that case, accusing the build of being multiarch. Fix and test.
I am not convinced that we should fix this. |
So - is there a specific reason that an error is desirable here? I can't see any situation where the error would be anything but spurious. And if that is so, it seems to me unhelpful not to fix it, and so to force all your users to (independently) discover the problem, debug it, and find their own workarounds. |
Why would anyone set As I explained, |
Could I ask you again - what is the purpose of the error? Who would be served by it? Just a personal opinion - but I think build systems really have to be careful not to trip people up for things that won't in fact cause a problem. |
Better fix in #532 |
Thanks for the patch Matthew, and for the slightly cleaned fix Daniele. This should work in |
Thanks - that's very helpful. |
We came across a situation where the build added duplicate archs in
ARCHFLAGS, e.g.
-arch arm64 -arch arm64
. These usually pass throughcompilers etc without problem, but mesonpy was raising in that case,
accusing the build of being multiarch. Fix and test.