Compilation for x86 x86_64 without AVX#39
Conversation
|
Hi, thanks for the contribution, with which compilation flags do you come across this failure ? The code is playing maybe a bit loose with the definitions of the flags / what they mean, but the intent was to add runtime detection of cpu features (although hit a roadblock on how to do this with stable rust) so that the code is there for all platform ( |
|
@vincenthz I was trying to compile it for android x86 when I got the error. cryptoxide/src/hashing/blake2/mod.rs Lines 15 to 16 in 9d22605 Anyway Because in the code below, cryptoxide/src/hashing/blake2/mod.rs Lines 113 to 120 in 9d22605 And my PR is an attempt to prevent the cases I described above. I hope we will reach a consensus on this issue. |
|
I found a similar issue when building a lib using |
|
Hi @vincenthz ! I also made a new PR #40 . Could you check it ? It's important to us to have compatibility with x86 machines. |
|
I'm not certain this is the right way to go at this stage, but to avoid further delay, this is the safest path right now until I figure really what to do with compilation and autodetection. I've fiddled with flags to try to reproduce the build error, but to not available. So i'm totally sure that support 32 bits x86 (which it seems that's what it is) is actually useful to anything these days, and not the artifact of a typical default generator of android package targets. |
Hi! I have faced a problem when compilation for x86 or x86_64 without AVX emits an error. It happens because there isn't a restriction for a compiler not to compile a code with AVX intrinsics when that feature is not available. So I have prepared the fix for that case, and I would appreciate it if you check this PR.