diff options
author | John Hodge <tpg@ucc.asn.au> | 2019-10-12 17:48:00 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2019-10-12 17:48:00 +0800 |
commit | 7a198afde859c787371f3e1b7a505062820ca8d9 (patch) | |
tree | 1f179830dce7eed813b59707b0bf4fd9ee6b7984 /rustc-1.29.0-src.patch | |
parent | 97b12bcf017c43a544d44ddcded5596f9ffdf3c4 (diff) | |
download | mrust-7a198afde859c787371f3e1b7a505062820ca8d9.tar.gz |
rustc patch 1.29 - Disable all SSE features if built with mrustc
Diffstat (limited to 'rustc-1.29.0-src.patch')
-rw-r--r-- | rustc-1.29.0-src.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/rustc-1.29.0-src.patch b/rustc-1.29.0-src.patch index c4974757..417b4294 100644 --- a/rustc-1.29.0-src.patch +++ b/rustc-1.29.0-src.patch @@ -64,3 +64,18 @@ + //assert!(mem::size_of::<ty::TypeVariants>() <= 24); + //#[cfg(target_pointer_width = "64")] + //assert!(mem::size_of::<ty::TyS>() <= 32); + +--- src/stdsimd/stdsimd/arch/detect/os/x86.rs ++++ src/stdsimd/stdsimd/arch/detect/os/x86.rs +@@ -14,5 +14,11 @@ + /// Performs run-time feature detection. + #[inline] ++#[cfg(not(rust_compiler="mrustc"))] + pub fn check_for(x: Feature) -> bool { + cache::test(x as u32, detect_features) + } ++#[inline] ++#[cfg(rust_compiler="mrustc")] ++pub fn check_for(x: Feature) -> bool { ++ false ++} |