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

compilation fix for architecture other than x86 #182

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rafael2k
Copy link

Fix for issue #181.

@@ -11,8 +11,6 @@ option(NDEBUG "Whether to suppress asserts and array bound checks" ON)

if (NATIVECPU)
add_definitions(-march=native -mtune=native)
else ()
add_definitions(-march=nocona -mtune=generic)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be better to add else if x86 than to remove it.

Copy link
Author

@rafael2k rafael2k May 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont know how to check the architecture with cmake. But as it is, compilation is artificially broken for any arch != x86_64 (when not using NATIVECPU).

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

Successfully merging this pull request may close these issues.

2 participants