From 83f1f118e56320667c04a522e05f09a9f4abb6ff Mon Sep 17 00:00:00 2001 From: Djzin Date: Fri, 9 Jun 2017 07:07:58 +0100 Subject: [PATCH] hack around bug in emscripten --- src/libcore/mem.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libcore/mem.rs b/src/libcore/mem.rs index 91b348fb5d677..7c63ecd203e2a 100644 --- a/src/libcore/mem.rs +++ b/src/libcore/mem.rs @@ -503,7 +503,9 @@ pub fn swap(x: &mut T, y: &mut T) { // that swapping either 32 bytes or 64 bytes at a time is most efficient for intel // Haswell E processors. LLVM is more able to optimize if we give a struct a // #[repr(simd)], even if we don't actually use this struct directly. - #[repr(simd)] + // + // FIXME repr(simd) broken on emscripten + #[cfg_attr(not(target_os = "emscripten"), repr(simd))] struct Block(u64, u64, u64, u64); struct UnalignedBlock(u64, u64, u64, u64);