Skip to content

Commit f112128

Browse files
committed
rust: Disable SSE2 to work around a rustc crash with UML
It looks like rustc is crashing when building the doctests under UML. No idea exactly why, but there was a SIGTRAP deep within LLVM somewhere. Disabling SSE2 seems to fix it, as noted here: https://bestrustcrates.com/p/this-small-project-iliakonnovrust-crash/index.html Signed-off-by: David Gow <[email protected]>
1 parent bd12347 commit f112128

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/generate_rust_target.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ fn main() {
204204
"data-layout",
205205
"e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128",
206206
);
207-
let mut features = "-3dnow,-3dnowa,-mmx,+soft-float".to_string();
207+
let mut features = "-3dnow,-3dnowa,-mmx,+soft-float,-sse,-sse2".to_string();
208208
if cfg.has("RETPOLINE") {
209209
features += ",+retpoline-external-thunk";
210210
}

0 commit comments

Comments
 (0)