From fd778b607f019e8d9e2ea733fab377d98a14619c Mon Sep 17 00:00:00 2001 From: Sébastien Crozet Date: Fri, 30 Jul 2021 11:12:31 +0200 Subject: Fix emscripten build + add emscripten build to the CI --- src/dynamics/solver/velocity_constraint_element.rs | 6 +++--- src/dynamics/solver/velocity_ground_constraint_element.rs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/dynamics/solver') diff --git a/src/dynamics/solver/velocity_constraint_element.rs b/src/dynamics/solver/velocity_constraint_element.rs index d1ad6ac..b1c244a 100644 --- a/src/dynamics/solver/velocity_constraint_element.rs +++ b/src/dynamics/solver/velocity_constraint_element.rs @@ -16,7 +16,7 @@ pub(crate) struct VelocityConstraintTangentPart { } impl VelocityConstraintTangentPart { - #[cfg(not(target_arch = "wasm32"))] + #[cfg(any(not(target_arch = "wasm32"), feature = "simd-is-enabled"))] fn zero() -> Self { Self { gcross1: [na::zero(); DIM - 1], @@ -130,7 +130,7 @@ pub(crate) struct VelocityConstraintNormalPart { } impl VelocityConstraintNormalPart { - #[cfg(not(target_arch = "wasm32"))] + #[cfg(any(not(target_arch = "wasm32"), feature = "simd-is-enabled"))] fn zero() -> Self { Self { gcross1: na::zero(), @@ -193,7 +193,7 @@ pub(crate) struct VelocityConstraintElement { } impl VelocityConstraintElement { - #[cfg(not(target_arch = "wasm32"))] + #[cfg(any(not(target_arch = "wasm32"), feature = "simd-is-enabled"))] pub fn zero() -> Self { Self { normal_part: VelocityConstraintNormalPart::zero(), 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 { } impl VelocityGroundConstraintTangentPart { - #[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 { } impl VelocityGroundConstraintNormalPart { - #[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 { } impl VelocityGroundConstraintElement { - #[cfg(not(target_arch = "wasm32"))] + #[cfg(any(not(target_arch = "wasm32"), feature = "simd-is-enabled"))] pub fn zero() -> Self { Self { normal_part: VelocityGroundConstraintNormalPart::zero(), -- cgit