Conversation
|
|
|
I could also copy over what boost-context does @pdimov: Any preferences? |
|
The current state of CMake is that |
|
|
No, that's not true. Read the comments on the issue again. |
I did and as a conclusion the docs for But ultimately I don't mind I can just add |
|
Please make the following changes:
In principle we support more architectures (e.g. s390x, PowerPC) but I don't know what the On second thought, I'm not sure MSVC supports MIPS anymore either. We can probably drop that case too. |
|
strongly simplified as requested |
Where is the b2 logic for the selection for that? CMake is just using uname -m for the host I would assume b2 does something similar? |
|
b2 uses configure checks and looks at predefined compiler macros: https://github.com/boostorg/config/tree/develop/checks/architecture |
|
I'm going to merge this as it currently stands (after CI finishes), but here are some links if we return to this later: https://stackoverflow.com/questions/70475665/what-are-the-possible-values-of-cmake-system-processor |
|
@pdimov: I also found those but the question is rather where the b2 build hides the mapping from architecture to character literal. |
|
Character literal? |
The mapping from "x64" to "x" or "aarch" to "a" |
|
That's done by just taking the first letter of the architecture. |
|
If I would have known that I probably would have used for the !MSVC part |
|
I suppose that would work too; I can't offhand think of an architecture where it would give the wrong result. |
|
|
|
Feel free to submit another PR for the above change to avoid the need to patch in vcpkg if you like - but please check for |
closes #53