-
Notifications
You must be signed in to change notification settings - Fork 449
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 simd_backend
+ --no-default-features
#433
Conversation
Well that's fun...
It seems the I'm not sure if there's a way to selectively enable RUSTFLAGS only for the target executable and not for the build scripts. |
Ugggh I've fought this before. I don't think there's a way to do crate-specific RUSTFLAGS, but I might be wrong. Is the only alternative the feature flag route? |
A pinned nightly may potentially work around the build failures we're experiencing due to build scripts using SIMD features: #433 (comment)
A pinned nightly may potentially work around the build failures we're experiencing due to build scripts using SIMD features: #433 (comment)
@rozbb my best guess is it's a change in a recent nightly which is auto-vectorizing something which wasn't being vectorized before. See #434 as a trivial code change which is also breaking in CI now. I tried pinning the nightly version in #435 and that seems to provide a band-aid until we can figure out a better solution. |
...and one other `alloc` cleanup. `simd_backend` requires `alloc` and so this combination previously caused a compile error. Also one additional test that works with an `alloc`-only profile wasn't enabled, causing a warning in this case. Finally, changes CI to test this configuration.
c617ec0
to
e5d6359
Compare
@rozbb this is green now |
Actually, it seems that only tests require |
I don't see the changes anymore |
Aah hmmm, ok. Maybe the tests should be gated on
Was lost in a rebase unfortunately |
If it's a pain to feature-gate the tests, I don't think it matters that much. I don't think there's an AVX2-capable machine that also has no RAM |
Adds `cfg(feature = "alloc")` gating to all tests that require `alloc`. This allows the tests to run with the `alloc` feature disabled.
Gated the
I'm a little curious why this only pops up with |
...and one other
alloc
cleanup.simd_backend
requiresalloc
and so this combination previously caused a compile error.Also one additional test that works with an
alloc
-only profile wasn't enabled, causing a warning in this case.Finally, changes CI to test this configuration.