-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
attempt to fix #314 #315
base: master
Are you sure you want to change the base?
attempt to fix #314 #315
Conversation
I believe |
I confirm the artifact here fixes. |
Thanks for your attention, I'll probably add a verification step in CI, then discuss it with @sebcrozet before we make a new release containing the fix, in the meantime I hope this updated artifact can be useful. |
I'll use my personal build anyway mdrrrr |
@@ -41,4 +41,10 @@ fi | |||
|
|||
# Working dir in wasm-pack is the project root so we need that "../../" | |||
|
|||
wasm-pack build --target web --out-dir "../../rapier-compat/builds/${dimension}d${feature_postfix}/wasm-build" "$rust_source_directory" | |||
if [[ $feature == "simd" ]]; then | |||
export additional_rustflags='-C target-feature=+simd128' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried export RUSTFLAGS=[...]
but this didn't work (wasn't used by wasm-pack
), I think my shell expertise is needing an update, there's probably a slightly cleaner way to achieve this.
in the meantime just removing the export
in the only self-improvement I can come up with.
Fix rapier2d-simd-compat doesn't really use simd128 instruction #314
run
cargo clean
to avoid reusing previously compiled crate ; while this doesn't help much with linked issue, I believe that's a sensible thing to do which will avoid surprises in the long run, so I'd argue to keep it, we're not benefitting much from incremental compilation speed if it comes at a price of sneaky build differences.add simd rustflags when building rapier-compat simd -> that's the real fix.
TODO: add a CI check ; to avoid regressions