Closed Hellzbellz123 closed 1 year ago
i managed too have fat fingers my apologies, i managed to get the project to compile in release after disabling lto, not sure why the de-reference wasnt working with cranelift but removing the * fixed that compiler error, it works both ways in rustc so it shouldnt be too big of a deal
as for the simd-nightly errors, the simd-nightly feature of rapier is equivelant too this: simd-nightly = [ "simba/packed_simd", "simd-is-enabled" ]
simd-stable compiles fine so i think this issue was probably my fault?
Looks like simba depends on the packed_simd_2 crate from crates.io which has been subsumed by std::simd
. packed_simd_2 uses a version of the interface with rustc that cg_clif doesn't support. There is an open issue to migrate to std::simd
: https://github.com/dimforge/simba/issues/33 I'm going to close this as the right course of action is for simba to move to std::simd
. For now using simd-stable with rapier is the best option.
pretty sure this is related too using simd-nightly feature of rapier2d, disabling that cargo feature got it too compile, however i noticed one strange issue between cranelift and rustc. the following line wouldnt compile with cranelift but would compile with the normal rustc codegen
*wtransform.rotation = *(Quat::from_euler(EulerRot::ZYX, aimangle, 0.0, 0.0));
this is the output from trying to using rapier2d/simd-nightly