-
Notifications
You must be signed in to change notification settings - Fork 993
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
fix the arch_host naming for armv8 (-> aarch64) #14362
fix the arch_host naming for armv8 (-> aarch64) #14362
Conversation
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 very much for contributing this fix @bavardage
Just one question, is there any other Conan architecture (armv4, armv4i, armv5el, armv5hf, armv6, armv7, armv7hf, armv7s, armv7k, armv8, armv8_32, armv8.3, arm64ec,
) that should also be mapped?
Not too sure - seems to be not amazingly well documented https://stackoverflow.com/questions/70475665/what-are-the-possible-values-of-cmake-system-processor |
I'd consider that the value of When cross-building
A robust CMake script evaluating |
My concern is what is CMake internals doing? Isn't CMake itself expecting one value? Why it doesn't error if an unexpected or unmanaged value like Could this change be considered breaking if users are evaluating the current |
When not cross-building, CMake uses the value from the underlying build tool, in a way that is very platform specific. That is, CMake itself is unlikely to evaluate the value of this variable, but when it does, it does consider all possible "conventional" values unless there are other constraints like the ones below:
When cross-building, it's can be entirely arbitrary - but for a well-known cpu architecture you probably want to use a pre-existing convention, rather than a new one. The robust way of evaluating
I'd say it's very unlikely that user scripts are evalauting |
Hi @bavardage I have gone with the insights of @jcar87 and implemented a per-OS mapping for the Please let me know what you think. |
that makes sense - per OS seems like the way to go! |
@memsharded Could you please backport this to 1.x as well? |
Changelog: Fix: Fix CMake system processor name on armv8/aarch64.
Docs: Omit
fixes #14361