rust/patches/0001-Disable-stdsimd.patch

60 lines
1.9 KiB
Diff
Raw Normal View History

From 8bce7b9601aec46ee7704027dc173257d3e43492 Mon Sep 17 00:00:00 2001
2018-10-06 11:12:06 +02:00
From: bjorn3 <bjorn3@users.noreply.github.com>
Date: Fri, 14 Dec 2018 13:09:42 +0100
2018-10-06 11:12:06 +02:00
Subject: [PATCH] Disable stdsimd
---
src/libcore/lib.rs | 2 ++
src/libstd/lib.rs | 4 +++-
2 files changed, 5 insertions(+), 1 deletion(-)
2018-10-06 11:12:06 +02:00
diff --git a/src/libcore/lib.rs b/src/libcore/lib.rs
index a51674f..313c173 100644
2018-10-06 11:12:06 +02:00
--- a/src/libcore/lib.rs
+++ b/src/libcore/lib.rs
@@ -248,6 +248,7 @@ macro_rules! test_v256 { ($item:item) => {}; }
macro_rules! test_v512 { ($item:item) => {}; }
#[allow(unused_macros)]
macro_rules! vector_impl { ($([$f:ident, $($args:tt)*]),*) => { $($f!($($args)*);)* } }
2018-10-06 11:12:06 +02:00
+/*
#[path = "../stdsimd/coresimd/mod.rs"]
#[allow(missing_docs, missing_debug_implementations, dead_code, unused_imports)]
#[unstable(feature = "stdsimd", issue = "48556")]
@@ -255,3 +256,4 @@ mod coresimd;
2018-10-06 11:12:06 +02:00
#[stable(feature = "simd_arch", since = "1.27.0")]
pub use coresimd::arch;
+*/
diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs
index 90c8eaf..95541c3 100644
2018-10-06 11:12:06 +02:00
--- a/src/libstd/lib.rs
+++ b/src/libstd/lib.rs
@@ -287,7 +287,7 @@
#![feature(rustc_attrs)]
#![feature(rustc_const_unstable)]
#![feature(std_internals)]
-#![feature(stdsimd)]
+//#![feature(stdsimd)]
#![feature(shrink_to)]
#![feature(slice_concat_ext)]
#![feature(slice_internals)]
@@ -503,6 +503,7 @@ mod memchr;
2018-10-06 11:12:06 +02:00
// compiler
pub mod rt;
+/*
// Pull in the `stdsimd` crate directly into libstd. This is the same as
2018-10-06 11:12:06 +02:00
// libcore's arch/simd modules where the source of truth here is in a different
// repository, but we pull things in here manually to get it into libstd.
@@ -526,6 +527,7 @@ mod coresimd {
2018-10-06 11:12:06 +02:00
#[stable(feature = "simd_arch", since = "1.27.0")]
#[cfg(not(test))]
2018-10-06 11:12:06 +02:00
pub use stdsimd::arch;
+*/
// Include a number of private modules that exist solely to provide
// the rustdoc documentation for primitive types. Using `include!`
--
2.11.0
2018-10-06 11:12:06 +02:00