openbsd-ports/lang/rust/patches/patch-src_test_run-pass_sse2_rs
landry 97894fe4c9 Update to rust 1.22.1.
full changelog at https://blog.rust-lang.org/2017/11/22/Rust-1.22.html

port changes:
- switch to clang and libc++ (instead of egcc and estdc++)
- use devel/llvm instead of the embedded llvm version
- make i386 produce code for 'pentiumpro' instead of 'pentium4' so that
ppl can use ripgrep on pentium II's (yay!)
- use a hack (codegen-units=16) to fix memory pressure issues on i386.
  Might not work forever.....

tested on i386 & amd64, went into an i386 bulk.
all the hard work from semarie@
2017-12-04 17:31:49 +00:00

15 lines
533 B
Plaintext

$OpenBSD: patch-src_test_run-pass_sse2_rs,v 1.1 2017/12/04 17:31:49 landry Exp $
Disable SSE2 tests for i386.
Index: src/test/run-pass/sse2.rs
--- src/test/run-pass/sse2.rs.orig
+++ src/test/run-pass/sse2.rs
@@ -17,7 +17,7 @@ fn main() {
match env::var("TARGET") {
Ok(s) => {
// Skip this tests on i586-unknown-linux-gnu where sse2 is disabled
- if s.contains("i586") {
+ if s.contains("i586") || s.contains("i686-unknown-openbsd") {
return
}
}