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

fix: target arch detection not working on Mac (#35) #38

Merged
merged 6 commits into from
Nov 1, 2022

Conversation

abdes
Copy link
Owner

@abdes abdes commented Nov 1, 2022

Target architecture detection now consistently uses a small test program that
relies on compiler definitions to detect the architecture. This is much more reliable
than dumpmachine.

On Apple we use CMAKE_OSX_ARCHITECTURES to set the target architecture when
cross compiling.

Fixes #35

@abdes abdes added the bug Something isn't working label Nov 1, 2022
@abdes abdes self-assigned this Nov 1, 2022
@abdes abdes merged commit 3d8a0a5 into master Nov 1, 2022
@abdes abdes deleted the fix_target_arch_detection branch November 1, 2022 05:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot cross-compile to x64 on Apple Silicon
1 participant