aboutsummaryrefslogtreecommitdiff
path: root/src/dynamics/solver/velocity_ground_constraint_element.rs
diff options
context:
space:
mode:
authorSébastien Crozet <developer@crozet.re>2021-07-30 11:12:31 +0200
committerSébastien Crozet <sebastien@crozet.re>2021-07-30 11:29:32 +0200
commitfd778b607f019e8d9e2ea733fab377d98a14619c (patch)
tree2938b95bf0e89b11acf1a486a1ee930a0e2aa0a6 /src/dynamics/solver/velocity_ground_constraint_element.rs
parent37a90a5409fc306981e925e4867922e8ee51c045 (diff)
downloadrapier-fd778b607f019e8d9e2ea733fab377d98a14619c.tar.gz
rapier-fd778b607f019e8d9e2ea733fab377d98a14619c.tar.bz2
rapier-fd778b607f019e8d9e2ea733fab377d98a14619c.zip
Fix emscripten build + add emscripten build to the CI
Diffstat (limited to 'src/dynamics/solver/velocity_ground_constraint_element.rs')
-rw-r--r--src/dynamics/solver/velocity_ground_constraint_element.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dynamics/solver/velocity_ground_constraint_element.rs b/src/dynamics/solver/velocity_ground_constraint_element.rs
index c4c6393..edf84c7 100644
--- a/src/dynamics/solver/velocity_ground_constraint_element.rs
+++ b/src/dynamics/solver/velocity_ground_constraint_element.rs
@@ -15,7 +15,7 @@ pub(crate) struct VelocityGroundConstraintTangentPart<N: SimdRealField> {
}
impl<N: SimdRealField> VelocityGroundConstraintTangentPart<N> {
- #[cfg(not(target_arch = "wasm32"))]
+ #[cfg(any(not(target_arch = "wasm32"), feature = "simd-is-enabled"))]
fn zero() -> Self {
Self {
gcross2: [na::zero(); DIM - 1],
@@ -104,7 +104,7 @@ pub(crate) struct VelocityGroundConstraintNormalPart<N: SimdRealField> {
}
impl<N: SimdRealField> VelocityGroundConstraintNormalPart<N> {
- #[cfg(not(target_arch = "wasm32"))]
+ #[cfg(any(not(target_arch = "wasm32"), feature = "simd-is-enabled"))]
fn zero() -> Self {
Self {
gcross2: na::zero(),
@@ -143,7 +143,7 @@ pub(crate) struct VelocityGroundConstraintElement<N: SimdRealField> {
}
impl<N: SimdRealField> VelocityGroundConstraintElement<N> {
- #[cfg(not(target_arch = "wasm32"))]
+ #[cfg(any(not(target_arch = "wasm32"), feature = "simd-is-enabled"))]
pub fn zero() -> Self {
Self {
normal_part: VelocityGroundConstraintNormalPart::zero(),