-
Notifications
You must be signed in to change notification settings - Fork 313
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
FORCE_SSE is always active on i386/amd64 #297
Comments
First a little history, so we can all understand the original intent before cmake was involved. Maybe another way to say it would be... For an x86 32 bit target, the default would be Pentium 3 architecture. Building for a later 32 bit CPU does not seem to offer any benefit. This would be good for packagers making binary distributions for others. It would be good to have some way to turn off that requirement for someone with a computer from the previous Century. (In all these years I only heard of one such case.) For an x86_64 target, just assume the generic 64 bit architecture. That would be safe for making binary distributions for others. I have not yet done any experiments to see if -march=native offers any benefit for a 64 bit target. |
Yes, that was the intent. But with the line you are forcing the SSE behaviour and no options can change that fixed assignment. If I remember well, I enabled by default FORCE_SSE through option and if someone would to experiment with other settings can do that. |
Fixed in dev branch. adebd06 Thanks for all your help! |
if you don't remove this line the change is useless. |
If you use this line, FORCE_SSE is always active and you can't compile direwolf with native cpu flags on i386/amd64 architecture.
The correct way is to set
then, at compile time, you can choose which flags to use or (if all are OFF) to use the auto-discovery feature.
The text was updated successfully, but these errors were encountered: