Skip to content
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

CMAKE_SIZEOF_VOID_P incorrectly detected on mingw cross compiler #100

Open
alextwothousand opened this issue Nov 16, 2021 · 1 comment
Open

Comments

@alextwothousand
Copy link

Context:
OS: Arch Linux x86_64
Compiler: x86_64-mingw-w64-gcc

Issue:
CMAKE_SIZEOF_VOID_P appears to be detected incorrectly on the mingw cross compiler. It is including hde32.c, rather than hde64, and I have confirmed this by displaying a CMake fatal error. I would implement a fix through a PR, but I'm unsure of what the goal for this is - to check whether you're running a 64 bit architecture, or a 32 bit architecture? Thank you.

@alextwothousand
Copy link
Author

Check alextwothousand@a030771 on my fork, it works fine now with my FORCE_USE_HDE64 toggle. Obviously not a perm fix, but works fine for me now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant